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

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

Issue 293353007: Move resource_response_info from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/site_isolation_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "content/child/request_extra_data.h" 12 #include "content/child/request_extra_data.h"
13 #include "content/child/request_info.h" 13 #include "content/child/request_info.h"
14 #include "content/child/resource_dispatcher.h" 14 #include "content/child/resource_dispatcher.h"
15 #include "content/common/resource_messages.h" 15 #include "content/common/resource_messages.h"
16 #include "content/common/service_worker/service_worker_types.h" 16 #include "content/common/service_worker/service_worker_types.h"
17 #include "content/public/child/request_peer.h" 17 #include "content/public/child/request_peer.h"
18 #include "content/public/common/resource_response.h" 18 #include "content/public/common/resource_response.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 #include "net/http/http_response_headers.h" 20 #include "net/http/http_response_headers.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "webkit/child/resource_loader_bridge.h" 22 #include "webkit/child/resource_loader_bridge.h"
23 #include "webkit/common/appcache/appcache_interfaces.h" 23 #include "webkit/common/appcache/appcache_interfaces.h"
24 24
25 using webkit_glue::ResourceLoaderBridge; 25 using webkit_glue::ResourceLoaderBridge;
26 using webkit_glue::ResourceResponseInfo;
27 26
28 namespace content { 27 namespace content {
29 28
30 static const char test_page_url[] = "http://www.google.com/"; 29 static const char test_page_url[] = "http://www.google.com/";
31 static const char test_page_headers[] = 30 static const char test_page_headers[] =
32 "HTTP/1.1 200 OK\nContent-Type:text/html\n\n"; 31 "HTTP/1.1 200 OK\nContent-Type:text/html\n\n";
33 static const char test_page_mime_type[] = "text/html"; 32 static const char test_page_mime_type[] = "text/html";
34 static const char test_page_charset[] = ""; 33 static const char test_page_charset[] = "";
35 static const char test_page_contents[] = 34 static const char test_page_contents[] =
36 "<html><head><title>Google</title></head><body><h1>Google</h1></body></html>"; 35 "<html><head><title>Google</title></head><body><h1>Google</h1></body></html>";
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 response_head.error_code = net::OK; 425 response_head.error_code = net::OK;
427 426
428 PerformTest(response_head); 427 PerformTest(response_head);
429 428
430 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); 429 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start);
431 EXPECT_EQ(base::TimeTicks(), 430 EXPECT_EQ(base::TimeTicks(),
432 response_info().load_timing.connect_timing.dns_start); 431 response_info().load_timing.connect_timing.dns_start);
433 } 432 }
434 433
435 } // namespace content 434 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/site_isolation_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698