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

Unified Diff: net/base/url_util_unittest.cc

Issue 12069004: google_apis: Move AppendQueryParameter() etc. from common/net/url_util.h to net/base/url_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « net/base/url_util.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/url_util_unittest.cc
diff --git a/chrome/common/net/url_util_unittest.cc b/net/base/url_util_unittest.cc
similarity index 94%
rename from chrome/common/net/url_util_unittest.cc
rename to net/base/url_util_unittest.cc
index 1d7fdda7d478ffd09399120e1f5dd1299d41b5be..8d1efde43a06e6c022bdd4748aa5ed7e7e78a395 100644
--- a/chrome/common/net/url_util_unittest.cc
+++ b/net/base/url_util_unittest.cc
@@ -1,13 +1,14 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// 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/net/url_util.h"
+#include "net/base/url_util.h"
#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace chrome_common_net {
+namespace net {
+namespace {
TEST(UrlUtilTest, AppendQueryParameter) {
// Appending a name-value pair to a URL without a query component.
@@ -80,7 +81,7 @@ TEST(UrlUtilTest, AppendOrReplaceQueryParameter) {
"name", "new").spec());
}
-TEST(BrowserUrlUtilTest, GetValueForKeyInQuery) {
+TEST(UrlUtilTest, GetValueForKeyInQuery) {
GURL url("http://example.com/path?name=value&boolParam&"
"url=http://test.com/q?n1%3Dv1%26n2");
std::string value;
@@ -99,4 +100,5 @@ TEST(BrowserUrlUtilTest, GetValueForKeyInQuery) {
EXPECT_EQ("http://test.com/q?n1=v1&n2", value);
}
-} // namespace chrome_common_net.
+} // namespace
+} // namespace net
« no previous file with comments | « net/base/url_util.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698