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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 public: | 233 public: |
234 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, | 234 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, |
235 int process_id) | 235 int process_id) |
236 : ResourceMessageFilter( | 236 : ResourceMessageFilter( |
237 process_id, | 237 process_id, |
238 PROCESS_TYPE_RENDERER, | 238 PROCESS_TYPE_RENDERER, |
239 NULL, | 239 NULL, |
240 NULL, | 240 NULL, |
241 NULL, | 241 NULL, |
242 NULL, | 242 NULL, |
243 NULL, | |
244 base::Bind(&TestFilterSpecifyingChild::GetContexts, | 243 base::Bind(&TestFilterSpecifyingChild::GetContexts, |
245 base::Unretained(this))), | 244 base::Unretained(this))), |
246 resource_context_(resource_context), | 245 resource_context_(resource_context), |
247 canceled_(false), | 246 canceled_(false), |
248 received_after_canceled_(0) { | 247 received_after_canceled_(0) { |
249 set_peer_process_for_testing(base::Process::Current()); | 248 set_peer_process_for_testing(base::Process::Current()); |
250 } | 249 } |
251 | 250 |
252 void set_canceled(bool canceled) { canceled_ = canceled; } | 251 void set_canceled(bool canceled) { canceled_ = canceled; } |
253 int received_after_canceled() const { return received_after_canceled_; } | 252 int received_after_canceled() const { return received_after_canceled_; } |
(...skipping 3650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3904 return nullptr; | 3903 return nullptr; |
3905 } | 3904 } |
3906 | 3905 |
3907 INSTANTIATE_TEST_CASE_P( | 3906 INSTANTIATE_TEST_CASE_P( |
3908 ResourceDispatcherHostTests, | 3907 ResourceDispatcherHostTests, |
3909 ResourceDispatcherHostTest, | 3908 ResourceDispatcherHostTest, |
3910 testing::Values(TestConfig::kDefault, | 3909 testing::Values(TestConfig::kDefault, |
3911 TestConfig::kOptimizeIPCForSmallResourceEnabled)); | 3910 TestConfig::kOptimizeIPCForSmallResourceEnabled)); |
3912 | 3911 |
3913 } // namespace content | 3912 } // namespace content |
OLD | NEW |