Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test/Wrapper_Test.cpp

Issue 5750789393874944: [IE] First round of ATL removal (Closed)
Patch Set: Created June 20, 2014, 9:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« src/plugin/Wrapper.cpp ('K') | « test/Util_Test.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <gtest/gtest.h>
2 #include "../src/plugin/Wrapper.h"
3
4 class Wrapper_Test
5 : public ::testing::Test
6 {
7 };
8
9 namespace
10 {
11 void Unaltered( std::wstring url )
12 {
13 std::wstring old = url ;
14 Wrapper::Unescape_URL( url );
15 ASSERT_EQ( url, old );
16 }
17
18 void Altered( std::wstring url, std::wstring unescaped )
19 {
20 Wrapper::Unescape_URL( url );
21 ASSERT_EQ( url, unescaped );
22 }
23 }
24
25 TEST( Wrapper_Test, unaltered_01 )
26 {
27 Unaltered( L"about:blank" );
28 }
29
30 TEST( Wrapper_Test, unaltered_02 )
31 {
32 Unaltered( L"http://url.com" );
33 }
34
35 TEST( Wrapper_Test, altered_01 )
36 {
37 Altered( L"http://url.com/url%20with%20space", L"http://url.com/url with space " ) ;
38 }
OLDNEW
« src/plugin/Wrapper.cpp ('K') | « test/Util_Test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld