OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/macros.h" |
5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
6 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
7 #include "base/pickle.h" | 8 #include "base/pickle.h" |
8 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 #include "extensions/browser/extension_throttle_entry.h" | 13 #include "extensions/browser/extension_throttle_entry.h" |
13 #include "extensions/browser/extension_throttle_manager.h" | 14 #include "extensions/browser/extension_throttle_manager.h" |
14 #include "extensions/browser/extension_throttle_test_support.h" | 15 #include "extensions/browser/extension_throttle_test_support.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 FAIL(); | 461 FAIL(); |
461 } | 462 } |
462 | 463 |
463 scoped_refptr<ExtensionThrottleEntryInterface> entry_after = | 464 scoped_refptr<ExtensionThrottleEntryInterface> entry_after = |
464 manager.RegisterRequestUrl(GURL("http://www.example.com/")); | 465 manager.RegisterRequestUrl(GURL("http://www.example.com/")); |
465 EXPECT_FALSE(entry_after->ShouldRejectRequest(*request_)); | 466 EXPECT_FALSE(entry_after->ShouldRejectRequest(*request_)); |
466 } | 467 } |
467 } | 468 } |
468 | 469 |
469 } // namespace extensions | 470 } // namespace extensions |
OLD | NEW |