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

Unified Diff: chrome/common/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/search_urls.cc ('k') | chrome/renderer/instant_restricted_id_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/search_urls_unittest.cc
diff --git a/chrome/common/search_urls_unittest.cc b/chrome/common/search_urls_unittest.cc
deleted file mode 100644
index ceb98ef348076a65ce9d90b1e1c9f50a1ecab08c..0000000000000000000000000000000000000000
--- a/chrome/common/search_urls_unittest.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/search_urls.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "url/gurl.h"
-
-namespace search {
-typedef testing::Test SearchURLsTest;
-
-TEST_F(SearchURLsTest, MatchesOriginAndPath) {
- EXPECT_TRUE(MatchesOriginAndPath(
- GURL("http://example.com/path"),
- GURL("http://example.com/path?param")));
- EXPECT_FALSE(MatchesOriginAndPath(
- GURL("http://not.example.com/path"),
- GURL("http://example.com/path")));
- EXPECT_TRUE(MatchesOriginAndPath(
- GURL("http://example.com:80/path"),
- GURL("http://example.com/path")));
- EXPECT_FALSE(MatchesOriginAndPath(
- GURL("http://example.com:8080/path"),
- GURL("http://example.com/path")));
- EXPECT_FALSE(MatchesOriginAndPath(
- GURL("ftp://example.com/path"),
- GURL("http://example.com/path")));
- EXPECT_FALSE(MatchesOriginAndPath(
- GURL("http://example.com/path"),
- GURL("https://example.com/path")));
- EXPECT_TRUE(MatchesOriginAndPath(
- GURL("https://example.com/path"),
- GURL("http://example.com/path")));
- EXPECT_FALSE(MatchesOriginAndPath(
- GURL("http://example.com/path"),
- GURL("http://example.com/another-path")));
-}
-
-} // namespace search
« no previous file with comments | « chrome/common/search_urls.cc ('k') | chrome/renderer/instant_restricted_id_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698