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

Unified Diff: chrome/common/chrome_content_client_unittest.cc

Issue 1301563003: Revert of Allow url::SchemeHostPort to hold non-file scheme without port (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/chrome_content_client.cc ('k') | components/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client_unittest.cc
diff --git a/chrome/common/chrome_content_client_unittest.cc b/chrome/common/chrome_content_client_unittest.cc
index 62591a9d16f282cb00d733e73a9e1c9e04231b58..5fa08bf3daafc21962ba13ac445cbdfaf07960d2 100644
--- a/chrome/common/chrome_content_client_unittest.cc
+++ b/chrome/common/chrome_content_client_unittest.cc
@@ -4,18 +4,12 @@
#include "chrome/common/chrome_content_client.h"
-#include <string.h>
-
#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string_split.h"
#include "content/public/common/content_switches.h"
-#include "extensions/common/constants.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "url/gurl.h"
-#include "url/origin.h"
-#include "url/url_util.h"
namespace {
@@ -127,16 +121,4 @@
}
#endif // defined(ENABLE_PLUGINS)
-TEST(ChromeContentClientTest, AdditionalSchemes) {
- EXPECT_TRUE(url::IsStandard(
- extensions::kExtensionScheme,
- url::Component(0, strlen(extensions::kExtensionScheme))));
-
- GURL extension_url(
- "chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef/foo.html");
- url::Origin origin(extension_url);
- EXPECT_EQ("chrome-extension://abcdefghijklmnopqrstuvwxyzabcdef",
- origin.Serialize());
-}
-
} // namespace chrome_common
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | components/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698