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

Unified Diff: ios/web/url_util_unittest.cc

Issue 986743003: Upstream (most of) ios/web/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix namespace comment Created 5 years, 9 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 | « ios/web/url_util.cc ('k') | ios/web/user_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/url_util_unittest.cc
diff --git a/ios/web/url_util_unittest.cc b/ios/web/url_util_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5dbf63e6be99a6160355b6a398874a977d6d2c27
--- /dev/null
+++ b/ios/web/url_util_unittest.cc
@@ -0,0 +1,16 @@
+// 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 "ios/web/public/url_util.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace web {
+
+TEST(URLUtilTest, GURLByRemovingRefFromGURL) {
+ GURL url("http://foo.com/bar#baz");
+ EXPECT_EQ(GURL("http://foo.com/bar"), GURLByRemovingRefFromGURL(url));
+}
+
+} // namespace web
« no previous file with comments | « ios/web/url_util.cc ('k') | ios/web/user_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698