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

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

Issue 2222403002: Revert of Remove dependency of c/b/loader on c/b/host_zoom_map_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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 "content/browser/loader/async_resource_handler.h" 5 #include "content/browser/loader/async_resource_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 class RecordingResourceMessageFilter : public ResourceMessageFilter { 89 class RecordingResourceMessageFilter : public ResourceMessageFilter {
90 public: 90 public:
91 RecordingResourceMessageFilter(ResourceContext* resource_context, 91 RecordingResourceMessageFilter(ResourceContext* resource_context,
92 net::URLRequestContext* request_context) 92 net::URLRequestContext* request_context)
93 : ResourceMessageFilter( 93 : ResourceMessageFilter(
94 0, 94 0,
95 PROCESS_TYPE_RENDERER, 95 PROCESS_TYPE_RENDERER,
96 nullptr, 96 nullptr,
97 nullptr, 97 nullptr,
98 nullptr, 98 nullptr,
99 nullptr,
99 nullptr, 100 nullptr,
100 base::Bind(&RecordingResourceMessageFilter::GetContexts, 101 base::Bind(&RecordingResourceMessageFilter::GetContexts,
101 base::Unretained(this))), 102 base::Unretained(this))),
102 resource_context_(resource_context), 103 resource_context_(resource_context),
103 request_context_(request_context) { 104 request_context_(request_context) {
104 set_peer_process_for_testing(base::Process::Current()); 105 set_peer_process_for_testing(base::Process::Current());
105 } 106 }
106 107
107 const std::vector<std::unique_ptr<IPC::Message>>& messages() const { 108 const std::vector<std::unique_ptr<IPC::Message>>& messages() const {
108 return messages_; 109 return messages_;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 encoded_data_length = std::get<3>(params); 301 encoded_data_length = std::get<3>(params);
301 EXPECT_EQ(32768, encoded_data_length); 302 EXPECT_EQ(32768, encoded_data_length);
302 encoded_body_length = std::get<4>(params); 303 encoded_body_length = std::get<4>(params);
303 EXPECT_EQ(32768, encoded_body_length); 304 EXPECT_EQ(32768, encoded_body_length);
304 } 305 }
305 306
306 } // namespace 307 } // namespace
307 308
308 } // namespace content 309 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/async_revalidation_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698