summaryrefslogtreecommitdiffstats
path: root/extensions/common/url_pattern_set_unittest.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 19:43:47 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 19:43:47 +0000
commitb56676dbdd2c6a548e0b67d54e02272390b9be41 (patch)
tree3f23a22165c56db3193be45f7a01f8223f9a0d7b /extensions/common/url_pattern_set_unittest.cc
parent59295c036d31be1aab70b03f7f45036d7658a364 (diff)
downloadchromium_src-b56676dbdd2c6a548e0b67d54e02272390b9be41.zip
chromium_src-b56676dbdd2c6a548e0b67d54e02272390b9be41.tar.gz
chromium_src-b56676dbdd2c6a548e0b67d54e02272390b9be41.tar.bz2
Support requesting subsets of host permissions using the permissions API.
BUG=158004 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/12209094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/url_pattern_set_unittest.cc')
-rw-r--r--extensions/common/url_pattern_set_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/common/url_pattern_set_unittest.cc b/extensions/common/url_pattern_set_unittest.cc
index 55564cf..725d6bf 100644
--- a/extensions/common/url_pattern_set_unittest.cc
+++ b/extensions/common/url_pattern_set_unittest.cc
@@ -198,10 +198,10 @@ TEST(URLPatternSetTest, Contains) {
EXPECT_FALSE(set1.Contains(set2));
EXPECT_TRUE(set2.Contains(set1));
- // Note that this just checks pattern equality, and not if individual patterns
- // contain other patterns. For example:
+ // Note that this checks if individual patterns contain other patterns, not
+ // just equality. For example:
AddPattern(&set1, "http://*.reddit.com/*");
- EXPECT_FALSE(set1.Contains(set2));
+ EXPECT_TRUE(set1.Contains(set2));
EXPECT_FALSE(set2.Contains(set1));
}