Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 2020633003: Revert of Add FrameHost mojo service (patchset #23 id:490001 of https://codereview.chromium.org/196… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 public: 234 public:
235 explicit TestFilterSpecifyingChild(ResourceContext* resource_context, 235 explicit TestFilterSpecifyingChild(ResourceContext* resource_context,
236 int process_id) 236 int process_id)
237 : ResourceMessageFilter( 237 : ResourceMessageFilter(
238 process_id, 238 process_id,
239 PROCESS_TYPE_RENDERER, 239 PROCESS_TYPE_RENDERER,
240 NULL, 240 NULL,
241 NULL, 241 NULL,
242 NULL, 242 NULL,
243 NULL, 243 NULL,
244 NULL,
244 base::Bind(&TestFilterSpecifyingChild::GetContexts, 245 base::Bind(&TestFilterSpecifyingChild::GetContexts,
245 base::Unretained(this))), 246 base::Unretained(this))),
246 resource_context_(resource_context), 247 resource_context_(resource_context),
247 canceled_(false), 248 canceled_(false),
248 received_after_canceled_(0) { 249 received_after_canceled_(0) {
249 set_peer_process_for_testing(base::Process::Current()); 250 set_peer_process_for_testing(base::Process::Current());
250 } 251 }
251 252
252 void set_canceled(bool canceled) { canceled_ = canceled; } 253 void set_canceled(bool canceled) { canceled_ = canceled; }
253 int received_after_canceled() const { return received_after_canceled_; } 254 int received_after_canceled() const { return received_after_canceled_; }
(...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after
3897 return nullptr; 3898 return nullptr;
3898 } 3899 }
3899 3900
3900 INSTANTIATE_TEST_CASE_P( 3901 INSTANTIATE_TEST_CASE_P(
3901 ResourceDispatcherHostTests, 3902 ResourceDispatcherHostTests,
3902 ResourceDispatcherHostTest, 3903 ResourceDispatcherHostTest,
3903 testing::Values(TestConfig::kDefault, 3904 testing::Values(TestConfig::kDefault,
3904 TestConfig::kOptimizeIPCForSmallResourceEnabled)); 3905 TestConfig::kOptimizeIPCForSmallResourceEnabled));
3905 3906
3906 } // namespace content 3907 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/async_revalidation_manager_unittest.cc ('k') | content/browser/loader/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698