OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/url_blacklist_manager.h" | 5 #include "chrome/browser/policy/url_blacklist_manager.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://mail.google.com"))); | 411 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://mail.google.com"))); |
412 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://s.mail.google.com"))); | 412 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://s.mail.google.com"))); |
413 EXPECT_TRUE(blacklist.IsURLBlocked(GURL("https://very.safe/"))); | 413 EXPECT_TRUE(blacklist.IsURLBlocked(GURL("https://very.safe/"))); |
414 EXPECT_TRUE(blacklist.IsURLBlocked(GURL("http://very.safe/path"))); | 414 EXPECT_TRUE(blacklist.IsURLBlocked(GURL("http://very.safe/path"))); |
415 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://very.safe/path"))); | 415 EXPECT_FALSE(blacklist.IsURLBlocked(GURL("https://very.safe/path"))); |
416 } | 416 } |
417 | 417 |
418 } // namespace | 418 } // namespace |
419 | 419 |
420 } // namespace policy | 420 } // namespace policy |
| 421 |
OLD | NEW |