Lines Matching refs:Match
50 bool Match(const GURL& origin,
115 EXPECT_FALSE(Match(kOrigin1, kUnprotected, mock_policy.get()));
116 EXPECT_TRUE(Match(kOrigin2, kUnprotected, mock_policy.get()));
117 EXPECT_FALSE(Match(kOriginExt, kUnprotected, mock_policy.get()));
118 EXPECT_FALSE(Match(kOriginDevTools, kUnprotected, mock_policy.get()));
120 EXPECT_TRUE(Match(kOrigin1, kProtected, mock_policy.get()));
121 EXPECT_FALSE(Match(kOrigin2, kProtected, mock_policy.get()));
122 EXPECT_FALSE(Match(kOriginExt, kProtected, mock_policy.get()));
123 EXPECT_FALSE(Match(kOriginDevTools, kProtected, mock_policy.get()));
125 EXPECT_FALSE(Match(kOrigin1, kExtension, mock_policy.get()));
126 EXPECT_FALSE(Match(kOrigin2, kExtension, mock_policy.get()));
127 EXPECT_TRUE(Match(kOriginExt, kExtension, mock_policy.get()));
128 EXPECT_FALSE(Match(kOriginDevTools, kExtension, mock_policy.get()));
130 EXPECT_TRUE(Match(kOrigin1, kUnprotected | kProtected, mock_policy.get()));
131 EXPECT_TRUE(Match(kOrigin2, kUnprotected | kProtected, mock_policy.get()));
132 EXPECT_FALSE(Match(kOriginExt, kUnprotected | kProtected, mock_policy.get()));
134 Match(kOriginDevTools, kUnprotected | kProtected, mock_policy.get()));
136 EXPECT_FALSE(Match(kOrigin1, kUnprotected | kExtension, mock_policy.get()));
137 EXPECT_TRUE(Match(kOrigin2, kUnprotected | kExtension, mock_policy.get()));
138 EXPECT_TRUE(Match(kOriginExt, kUnprotected | kExtension, mock_policy.get()));
140 Match(kOriginDevTools, kUnprotected | kExtension, mock_policy.get()));
142 EXPECT_TRUE(Match(kOrigin1, kProtected | kExtension, mock_policy.get()));
143 EXPECT_FALSE(Match(kOrigin2, kProtected | kExtension, mock_policy.get()));
144 EXPECT_TRUE(Match(kOriginExt, kProtected | kExtension, mock_policy.get()));
146 Match(kOriginDevTools, kProtected | kExtension, mock_policy.get()));
148 EXPECT_TRUE(Match(
150 EXPECT_TRUE(Match(
152 EXPECT_TRUE(Match(
154 EXPECT_FALSE(Match(kOriginDevTools,