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

Unified Diff: chrome/common/net/url_util_unittest.cc

Issue 10384086: Moved url_utils from chrome/browser/net to chrome/common/net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/net/url_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_util_unittest.cc
diff --git a/chrome/browser/net/browser_url_util_unittest.cc b/chrome/common/net/url_util_unittest.cc
similarity index 93%
rename from chrome/browser/net/browser_url_util_unittest.cc
rename to chrome/common/net/url_util_unittest.cc
index b9a0b2ee63df186b56e80be02a10fb1a0f30b4a0..ebcdfcce6b9313da5b521142c2cf2bc1424614fc 100644
--- a/chrome/browser/net/browser_url_util_unittest.cc
+++ b/chrome/common/net/url_util_unittest.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/browser_url_util.h"
+#include "chrome/common/net/url_util.h"
#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace chrome_browser_net {
+namespace chrome_common_net {
-TEST(BrowserUrlUtilTest, AppendQueryParameter) {
+TEST(UrlUtilTest, AppendQueryParameter) {
// Appending a name-value pair to a URL without a query component.
EXPECT_EQ("http://example.com/path?name=value",
AppendQueryParameter(GURL("http://example.com/path"),
@@ -30,7 +30,7 @@ TEST(BrowserUrlUtilTest, AppendQueryParameter) {
}
-TEST(BrowserUrlUtilTest, AppendOrReplaceQueryParameter) {
+TEST(UrlUtilTest, AppendOrReplaceQueryParameter) {
// Appending a name-value pair to a URL without a query component.
EXPECT_EQ("http://example.com/path?name=value",
AppendOrReplaceQueryParameter(GURL("http://example.com/path"),
@@ -80,4 +80,4 @@ TEST(BrowserUrlUtilTest, AppendOrReplaceQueryParameter) {
"name", "new").spec());
}
-} // namespace chrome_browser_net.
+} // namespace chrome_common_net.
« no previous file with comments | « chrome/common/net/url_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698