| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 public: | 236 public: |
| 237 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, | 237 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, |
| 238 int process_id) | 238 int process_id) |
| 239 : ResourceMessageFilter( | 239 : ResourceMessageFilter( |
| 240 process_id, | 240 process_id, |
| 241 PROCESS_TYPE_RENDERER, | 241 PROCESS_TYPE_RENDERER, |
| 242 NULL, | 242 NULL, |
| 243 NULL, | 243 NULL, |
| 244 NULL, | 244 NULL, |
| 245 NULL, | 245 NULL, |
| 246 NULL, | |
| 247 base::Bind(&TestFilterSpecifyingChild::GetContexts, | 246 base::Bind(&TestFilterSpecifyingChild::GetContexts, |
| 248 base::Unretained(this))), | 247 base::Unretained(this))), |
| 249 resource_context_(resource_context), | 248 resource_context_(resource_context), |
| 250 canceled_(false), | 249 canceled_(false), |
| 251 received_after_canceled_(0) { | 250 received_after_canceled_(0) { |
| 252 set_peer_process_for_testing(base::Process::Current()); | 251 set_peer_process_for_testing(base::Process::Current()); |
| 253 } | 252 } |
| 254 | 253 |
| 255 void set_canceled(bool canceled) { canceled_ = canceled; } | 254 void set_canceled(bool canceled) { canceled_ = canceled; } |
| 256 int received_after_canceled() const { return received_after_canceled_; } | 255 int received_after_canceled() const { return received_after_canceled_; } |
| (...skipping 3521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3778 return nullptr; | 3777 return nullptr; |
| 3779 } | 3778 } |
| 3780 | 3779 |
| 3781 INSTANTIATE_TEST_CASE_P( | 3780 INSTANTIATE_TEST_CASE_P( |
| 3782 ResourceDispatcherHostTests, | 3781 ResourceDispatcherHostTests, |
| 3783 ResourceDispatcherHostTest, | 3782 ResourceDispatcherHostTest, |
| 3784 testing::Values(TestConfig::kDefault, | 3783 testing::Values(TestConfig::kDefault, |
| 3785 TestConfig::kOptimizeIPCForSmallResourceEnabled)); | 3784 TestConfig::kOptimizeIPCForSmallResourceEnabled)); |
| 3786 | 3785 |
| 3787 } // namespace content | 3786 } // namespace content |
| OLD | NEW |