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

Unified Diff: extensions/common/url_pattern_unittest.cc

Issue 563263002: Cleanup: cpplint from /extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « extensions/common/update_manifest.h ('k') | extensions/renderer/default_dispatcher_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/url_pattern_unittest.cc
diff --git a/extensions/common/url_pattern_unittest.cc b/extensions/common/url_pattern_unittest.cc
index d4398a75092964696a76aba207946cedf2e4f0c3..280752adf05140aec311386996202893bb5bdf2d 100644
--- a/extensions/common/url_pattern_unittest.cc
+++ b/extensions/common/url_pattern_unittest.cc
@@ -54,7 +54,7 @@ TEST(ExtensionURLPatternTest, ParseInvalid) {
pattern.Parse(null_host))
<< null_host;
}
-};
+}
TEST(ExtensionURLPatternTest, Ports) {
const struct {
@@ -91,7 +91,7 @@ TEST(ExtensionURLPatternTest, Ports) {
EXPECT_EQ(kTestPatterns[i].expected_port, pattern.port())
<< "Got unexpected port for URL pattern: " << kTestPatterns[i].pattern;
}
-};
+}
// all pages for a given scheme
TEST(ExtensionURLPatternTest, Match1) {
@@ -184,7 +184,7 @@ TEST(ExtensionURLPatternTest, Match7) {
EXPECT_EQ("/*", pattern.path());
// Subdomain matching is never done if the argument has an IP address host.
EXPECT_FALSE(pattern.MatchesURL(GURL("http://127.0.0.1")));
-};
+}
// unicode
TEST(ExtensionURLPatternTest, Match8) {
@@ -202,7 +202,7 @@ TEST(ExtensionURLPatternTest, Match8) {
GURL("http://abc.\xe1\x80\xbf/a\xc2\x81\xe1xyz")));
EXPECT_TRUE(pattern.MatchesURL(
GURL("http://\xe1\x80\xbf/a\xc2\x81\xe1\xe1")));
-};
+}
// chrome://
TEST(ExtensionURLPatternTest, Match9) {
@@ -216,7 +216,7 @@ TEST(ExtensionURLPatternTest, Match9) {
EXPECT_TRUE(pattern.MatchesURL(GURL("chrome://favicon/http://google.com")));
EXPECT_TRUE(pattern.MatchesURL(GURL("chrome://favicon/https://google.com")));
EXPECT_FALSE(pattern.MatchesURL(GURL("chrome://history")));
-};
+}
// *://
TEST(ExtensionURLPatternTest, Match10) {
@@ -234,7 +234,7 @@ TEST(ExtensionURLPatternTest, Match10) {
EXPECT_FALSE(pattern.MatchesURL(GURL("chrome://favicon/http://google.com")));
EXPECT_FALSE(pattern.MatchesURL(GURL("file:///foo/bar")));
EXPECT_FALSE(pattern.MatchesURL(GURL("file://localhost/foo/bar")));
-};
+}
// <all_urls>
TEST(ExtensionURLPatternTest, Match11) {
@@ -266,7 +266,7 @@ TEST(ExtensionURLPatternTest, Match11) {
EXPECT_EQ(pattern.scheme(), pattern2.scheme());
EXPECT_EQ(pattern.port(), pattern2.port());
EXPECT_EQ(pattern.GetAsString(), pattern2.GetAsString());
-};
+}
// SCHEME_ALL matches all schemes.
TEST(ExtensionURLPatternTest, Match12) {
@@ -293,7 +293,7 @@ TEST(ExtensionURLPatternTest, Match12) {
EXPECT_TRUE(pattern.MatchesURL(GURL("about:version")));
EXPECT_TRUE(pattern.MatchesURL(
GURL("data:text/html;charset=utf-8,<html>asdf</html>")));
-};
+}
static const struct MatchPatterns {
const char* pattern;
@@ -323,7 +323,7 @@ TEST(ExtensionURLPatternTest, Match13) {
URLPattern pattern(URLPattern::SCHEME_ALL);
EXPECT_EQ(URLPattern::PARSE_SUCCESS, pattern.Parse("data:*"));
EXPECT_FALSE(pattern.MatchesURL(GURL("about:blank")));
-};
+}
// file scheme with empty hostname
TEST(ExtensionURLPatternTest, Match14) {
@@ -430,7 +430,7 @@ TEST(ExtensionURLPatternTest, Match19) {
EXPECT_FALSE(pattern.MatchesURL(GURL("chrome-extension://foobar")));
EXPECT_TRUE(pattern.MatchesURL(
GURL("filesystem:chrome-extension://ftw/t/file.txt")));
-};
+}
static const struct GetAsStringPatterns {
const char* pattern;
« no previous file with comments | « extensions/common/update_manifest.h ('k') | extensions/renderer/default_dispatcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698