| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 public: | 235 public: |
| 236 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, | 236 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, |
| 237 int process_id) | 237 int process_id) |
| 238 : ResourceMessageFilter( | 238 : ResourceMessageFilter( |
| 239 process_id, | 239 process_id, |
| 240 PROCESS_TYPE_RENDERER, | 240 PROCESS_TYPE_RENDERER, |
| 241 NULL, | 241 NULL, |
| 242 NULL, | 242 NULL, |
| 243 NULL, | 243 NULL, |
| 244 NULL, | 244 NULL, |
| 245 NULL, | |
| 246 base::Bind(&TestFilterSpecifyingChild::GetContexts, | 245 base::Bind(&TestFilterSpecifyingChild::GetContexts, |
| 247 base::Unretained(this))), | 246 base::Unretained(this))), |
| 248 resource_context_(resource_context), | 247 resource_context_(resource_context), |
| 249 canceled_(false), | 248 canceled_(false), |
| 250 received_after_canceled_(0) { | 249 received_after_canceled_(0) { |
| 251 set_peer_process_for_testing(base::Process::Current()); | 250 set_peer_process_for_testing(base::Process::Current()); |
| 252 } | 251 } |
| 253 | 252 |
| 254 void set_canceled(bool canceled) { canceled_ = canceled; } | 253 void set_canceled(bool canceled) { canceled_ = canceled; } |
| 255 int received_after_canceled() const { return received_after_canceled_; } | 254 int received_after_canceled() const { return received_after_canceled_; } |
| (...skipping 3567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3823 return nullptr; | 3822 return nullptr; |
| 3824 } | 3823 } |
| 3825 | 3824 |
| 3826 INSTANTIATE_TEST_CASE_P( | 3825 INSTANTIATE_TEST_CASE_P( |
| 3827 ResourceDispatcherHostTests, | 3826 ResourceDispatcherHostTests, |
| 3828 ResourceDispatcherHostTest, | 3827 ResourceDispatcherHostTest, |
| 3829 testing::Values(TestConfig::kDefault, | 3828 testing::Values(TestConfig::kDefault, |
| 3830 TestConfig::kOptimizeIPCForSmallResourceEnabled)); | 3829 TestConfig::kOptimizeIPCForSmallResourceEnabled)); |
| 3831 | 3830 |
| 3832 } // namespace content | 3831 } // namespace content |
| OLD | NEW |