Lines Matching defs:Match
53 bool Match(const GURL& origin,
117 EXPECT_FALSE(Match(kOrigin1, kUnprotected, mock_policy.get()));
118 EXPECT_TRUE(Match(kOrigin2, kUnprotected, mock_policy.get()));
119 EXPECT_FALSE(Match(kOriginExt, kUnprotected, mock_policy.get()));
120 EXPECT_FALSE(Match(kOriginDevTools, kUnprotected, mock_policy.get()));
122 EXPECT_TRUE(Match(kOrigin1, kProtected, mock_policy.get()));
123 EXPECT_FALSE(Match(kOrigin2, kProtected, mock_policy.get()));
124 EXPECT_FALSE(Match(kOriginExt, kProtected, mock_policy.get()));
125 EXPECT_FALSE(Match(kOriginDevTools, kProtected, mock_policy.get()));
127 EXPECT_FALSE(Match(kOrigin1, kExtension, mock_policy.get()));
128 EXPECT_FALSE(Match(kOrigin2, kExtension, mock_policy.get()));
129 EXPECT_TRUE(Match(kOriginExt, kExtension, mock_policy.get()));
130 EXPECT_FALSE(Match(kOriginDevTools, kExtension, mock_policy.get()));
132 EXPECT_TRUE(Match(kOrigin1, kUnprotected | kProtected, mock_policy.get()));
133 EXPECT_TRUE(Match(kOrigin2, kUnprotected | kProtected, mock_policy.get()));
134 EXPECT_FALSE(Match(kOriginExt, kUnprotected | kProtected, mock_policy.get()));
136 Match(kOriginDevTools, kUnprotected | kProtected, mock_policy.get()));
138 EXPECT_FALSE(Match(kOrigin1, kUnprotected | kExtension, mock_policy.get()));
139 EXPECT_TRUE(Match(kOrigin2, kUnprotected | kExtension, mock_policy.get()));
140 EXPECT_TRUE(Match(kOriginExt, kUnprotected | kExtension, mock_policy.get()));
142 Match(kOriginDevTools, kUnprotected | kExtension, mock_policy.get()));
144 EXPECT_TRUE(Match(kOrigin1, kProtected | kExtension, mock_policy.get()));
145 EXPECT_FALSE(Match(kOrigin2, kProtected | kExtension, mock_policy.get()));
146 EXPECT_TRUE(Match(kOriginExt, kProtected | kExtension, mock_policy.get()));
148 Match(kOriginDevTools, kProtected | kExtension, mock_policy.get()));
150 EXPECT_TRUE(Match(
152 EXPECT_TRUE(Match(
154 EXPECT_TRUE(Match(
156 EXPECT_FALSE(Match(kOriginDevTools,
164 EXPECT_FALSE(Match(kOrigin1, kExtension, NULL));
165 EXPECT_TRUE(Match(kOrigin1, kUnprotected, NULL));
166 EXPECT_FALSE(Match(kOrigin1, kProtected, NULL));
168 EXPECT_TRUE(Match(kOriginExt, kExtension, NULL));
169 EXPECT_FALSE(Match(kOriginExt, kUnprotected, NULL));
170 EXPECT_FALSE(Match(kOriginExt, kProtected, NULL));
172 EXPECT_FALSE(Match(kOriginDevTools, kExtension, NULL));
173 EXPECT_FALSE(Match(kOriginDevTools, kUnprotected, NULL));
174 EXPECT_FALSE(Match(kOriginDevTools, kProtected, NULL));