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

Side by Side Diff: content/child/resource_dispatcher_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 (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 "content/child/resource_dispatcher.h" 5 #include "content/child/resource_dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <tuple> 12 #include <tuple>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/memory/shared_memory.h" 18 #include "base/memory/shared_memory.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/process/process_handle.h" 20 #include "base/process/process_handle.h"
21 #include "base/run_loop.h" 21 #include "base/run_loop.h"
22 #include "base/test/scoped_feature_list.h" 22 #include "base/test/scoped_feature_list.h"
23 #include "content/child/request_extra_data.h" 23 #include "content/child/request_extra_data.h"
24 #include "content/child/test_request_peer.h" 24 #include "content/child/test_request_peer.h"
25 #include "content/common/appcache_interfaces.h" 25 #include "content/common/appcache_interfaces.h"
26 #include "content/common/resource_messages.h" 26 #include "content/common/resource_messages.h"
27 #include "content/common/resource_request_completion_status.h"
28 #include "content/public/child/fixed_received_data.h" 27 #include "content/public/child/fixed_received_data.h"
29 #include "content/public/child/request_peer.h" 28 #include "content/public/child/request_peer.h"
30 #include "content/public/child/resource_dispatcher_delegate.h" 29 #include "content/public/child/resource_dispatcher_delegate.h"
31 #include "content/public/common/content_features.h" 30 #include "content/public/common/content_features.h"
32 #include "content/public/common/request_context_frame_type.h" 31 #include "content/public/common/request_context_frame_type.h"
33 #include "content/public/common/resource_request.h" 32 #include "content/public/common/resource_request.h"
34 #include "content/public/common/resource_request_body.h" 33 #include "content/public/common/resource_request_body.h"
34 #include "content/public/common/resource_request_completion_status.h"
35 #include "content/public/common/resource_response.h" 35 #include "content/public/common/resource_response.h"
36 #include "content/public/common/service_worker_modes.h" 36 #include "content/public/common/service_worker_modes.h"
37 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
38 #include "net/base/request_priority.h" 38 #include "net/base/request_priority.h"
39 #include "net/http/http_response_headers.h" 39 #include "net/http/http_response_headers.h"
40 #include "testing/gtest/include/gtest/gtest.h" 40 #include "testing/gtest/include/gtest/gtest.h"
41 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 41 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
42 #include "url/gurl.h" 42 #include "url/gurl.h"
43 43
44 namespace content { 44 namespace content {
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 ResourceResponseHead response_head; 915 ResourceResponseHead response_head;
916 916
917 PerformTest(response_head); 917 PerformTest(response_head);
918 918
919 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); 919 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start);
920 EXPECT_EQ(base::TimeTicks(), 920 EXPECT_EQ(base::TimeTicks(),
921 response_info().load_timing.connect_timing.dns_start); 921 response_info().load_timing.connect_timing.dns_start);
922 } 922 }
923 923
924 } // namespace content 924 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698