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

Side by Side Diff: content/child/url_response_body_consumer_unittest.cc

Issue 2964503003: Move NetworkService mojom files to content/public/common. (Closed)
Patch Set: Merge Created 3 years, 5 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/child/url_response_body_consumer.h" 5 #include "content/child/url_response_body_consumer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "content/child/request_extra_data.h" 14 #include "content/child/request_extra_data.h"
15 #include "content/child/resource_dispatcher.h" 15 #include "content/child/resource_dispatcher.h"
16 #include "content/common/resource_messages.h" 16 #include "content/common/resource_messages.h"
17 #include "content/common/resource_request_completion_status.h"
18 #include "content/public/child/request_peer.h" 17 #include "content/public/child/request_peer.h"
19 #include "content/public/common/request_context_frame_type.h" 18 #include "content/public/common/request_context_frame_type.h"
20 #include "content/public/common/resource_request.h" 19 #include "content/public/common/resource_request.h"
20 #include "content/public/common/resource_request_completion_status.h"
21 #include "content/public/common/service_worker_modes.h" 21 #include "content/public/common/service_worker_modes.h"
22 #include "net/base/request_priority.h" 22 #include "net/base/request_priority.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 #include "url/origin.h" 25 #include "url/origin.h"
26 26
27 namespace content { 27 namespace content {
28 28
29 namespace { 29 namespace {
30 30
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 EXPECT_EQ(std::string(kMaxNumConsumedBytesInTask, 'a'), context.data); 310 EXPECT_EQ(std::string(kMaxNumConsumedBytesInTask, 'a'), context.data);
311 context.data.clear(); 311 context.data.clear();
312 312
313 Run(&context); 313 Run(&context);
314 EXPECT_EQ(std::string(kMaxNumConsumedBytesInTask, 'b'), context.data); 314 EXPECT_EQ(std::string(kMaxNumConsumedBytesInTask, 'b'), context.data);
315 } 315 }
316 316
317 } // namespace 317 } // namespace
318 318
319 } // namespace content 319 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698