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

Side by Side Diff: chrome/common/search/search_urls_unittest.cc

Issue 2122903002: Move search-related files from chrome/common to chrome/common/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move search-related files Created 4 years, 5 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
« no previous file with comments | « chrome/common/search/search_urls.cc ('k') | chrome/common/search_types.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/common/search_urls.h" 5 #include "chrome/common/search/search_urls.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace search { 10 namespace search {
11 typedef testing::Test SearchURLsTest; 11 typedef testing::Test SearchURLsTest;
12 12
13 TEST_F(SearchURLsTest, MatchesOriginAndPath) { 13 TEST_F(SearchURLsTest, MatchesOriginAndPath) {
14 EXPECT_TRUE(MatchesOriginAndPath( 14 EXPECT_TRUE(MatchesOriginAndPath(
15 GURL("http://example.com/path"), 15 GURL("http://example.com/path"),
(...skipping 15 matching lines...) Expand all
31 GURL("https://example.com/path"))); 31 GURL("https://example.com/path")));
32 EXPECT_TRUE(MatchesOriginAndPath( 32 EXPECT_TRUE(MatchesOriginAndPath(
33 GURL("https://example.com/path"), 33 GURL("https://example.com/path"),
34 GURL("http://example.com/path"))); 34 GURL("http://example.com/path")));
35 EXPECT_FALSE(MatchesOriginAndPath( 35 EXPECT_FALSE(MatchesOriginAndPath(
36 GURL("http://example.com/path"), 36 GURL("http://example.com/path"),
37 GURL("http://example.com/another-path"))); 37 GURL("http://example.com/another-path")));
38 } 38 }
39 39
40 } // namespace search 40 } // namespace search
OLDNEW
« no previous file with comments | « chrome/common/search/search_urls.cc ('k') | chrome/common/search_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698