Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: url/gurl_unittest.cc

Issue 14016005: url: Changes to make it build standalone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add blank line Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « url/gurl.cc ('k') | url/url.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "googleurl/src/gurl.h"
6 #include "googleurl/src/url_canon.h"
7 #include "googleurl/src/url_test_utils.h"
8 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "url/gurl.h"
7 #include "url/url_canon.h"
8 #include "url/url_test_utils.h"
9 9
10 // Some implementations of base/basictypes.h may define ARRAYSIZE. 10 // Some implementations of base/basictypes.h may define ARRAYSIZE.
11 // If it's not defined, we define it to the ARRAYSIZE_UNSAFE macro 11 // If it's not defined, we define it to the ARRAYSIZE_UNSAFE macro
12 // which is in our version of basictypes.h. 12 // which is in our version of basictypes.h.
13 #ifndef ARRAYSIZE 13 #ifndef ARRAYSIZE
14 #define ARRAYSIZE ARRAYSIZE_UNSAFE 14 #define ARRAYSIZE ARRAYSIZE_UNSAFE
15 #endif 15 #endif
16 16
17 using url_test_utils::WStringToUTF16; 17 using url_test_utils::WStringToUTF16;
18 using url_test_utils::ConvertUTF8ToUTF16; 18 using url_test_utils::ConvertUTF8ToUTF16;
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 TEST(GURLTest, IsStandard) { 480 TEST(GURLTest, IsStandard) {
481 GURL a("http:foo/bar"); 481 GURL a("http:foo/bar");
482 EXPECT_TRUE(a.IsStandard()); 482 EXPECT_TRUE(a.IsStandard());
483 483
484 GURL b("foo:bar/baz"); 484 GURL b("foo:bar/baz");
485 EXPECT_FALSE(b.IsStandard()); 485 EXPECT_FALSE(b.IsStandard());
486 486
487 GURL c("foo://bar/baz"); 487 GURL c("foo://bar/baz");
488 EXPECT_FALSE(c.IsStandard()); 488 EXPECT_FALSE(c.IsStandard());
489 } 489 }
OLDNEW
« no previous file with comments | « url/gurl.cc ('k') | url/url.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698