OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/renderer/subresource_filter_agen
t.h" | 5 #include "components/subresource_filter/content/renderer/subresource_filter_agen
t.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
13 #include "base/test/histogram_tester.h" | 13 #include "base/test/histogram_tester.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "components/subresource_filter/content/common/document_load_statistics.
h" | |
16 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" | 15 #include "components/subresource_filter/content/common/subresource_filter_messag
es.h" |
17 #include "components/subresource_filter/content/renderer/unverified_ruleset_deal
er.h" | 16 #include "components/subresource_filter/content/renderer/unverified_ruleset_deal
er.h" |
| 17 #include "components/subresource_filter/core/common/document_load_statistics.h" |
18 #include "components/subresource_filter/core/common/scoped_timers.h" | 18 #include "components/subresource_filter/core/common/scoped_timers.h" |
19 #include "components/subresource_filter/core/common/test_ruleset_creator.h" | 19 #include "components/subresource_filter/core/common/test_ruleset_creator.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h" | 22 #include "third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h" |
23 #include "third_party/WebKit/public/platform/WebURL.h" | 23 #include "third_party/WebKit/public/platform/WebURL.h" |
24 #include "third_party/WebKit/public/platform/WebURLError.h" | 24 #include "third_party/WebKit/public/platform/WebURLError.h" |
25 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 25 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 502 |
503 // The filter has been disconnected from the agent, so a call to | 503 // The filter has been disconnected from the agent, so a call to |
504 // reportDisallowedLoad() should not signal a first resource disallowed call | 504 // reportDisallowedLoad() should not signal a first resource disallowed call |
505 // to the agent, nor should it cause a crash. | 505 // to the agent, nor should it cause a crash. |
506 ExpectNoSignalAboutFirstSubresourceDisallowed(); | 506 ExpectNoSignalAboutFirstSubresourceDisallowed(); |
507 | 507 |
508 filter->reportDisallowedLoad(); | 508 filter->reportDisallowedLoad(); |
509 } | 509 } |
510 | 510 |
511 } // namespace subresource_filter | 511 } // namespace subresource_filter |
OLD | NEW |