OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" | 5 #include "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
14 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
15 #include "components/subresource_filter/content/browser/async_document_subresour
ce_filter.h" | 16 #include "components/subresource_filter/content/browser/async_document_subresour
ce_filter.h" |
16 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" | 17 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" |
17 #include "components/subresource_filter/core/common/activation_level.h" | 18 #include "components/subresource_filter/core/common/activation_level.h" |
18 #include "components/subresource_filter/core/common/activation_state.h" | 19 #include "components/subresource_filter/core/common/activation_state.h" |
19 #include "components/subresource_filter/core/common/proto/rules.pb.h" | 20 #include "components/subresource_filter/core/common/proto/rules.pb.h" |
20 #include "components/subresource_filter/core/common/test_ruleset_creator.h" | 21 #include "components/subresource_filter/core/common/test_ruleset_creator.h" |
21 #include "components/subresource_filter/core/common/test_ruleset_utils.h" | 22 #include "components/subresource_filter/core/common/test_ruleset_utils.h" |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 638 |
638 EXPECT_EQ(0, disallowed_notification_count()); | 639 EXPECT_EQ(0, disallowed_notification_count()); |
639 } | 640 } |
640 | 641 |
641 // TODO(csharrison): Make sure the following conditions are exercised in tests: | 642 // TODO(csharrison): Make sure the following conditions are exercised in tests: |
642 // | 643 // |
643 // - Synchronous navigations to about:blank. These hit issues with the | 644 // - Synchronous navigations to about:blank. These hit issues with the |
644 // NavigationSimulator currently. | 645 // NavigationSimulator currently. |
645 | 646 |
646 } // namespace subresource_filter | 647 } // namespace subresource_filter |
OLD | NEW |