OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "chrome/common/render_messages.h" | 12 #include "chrome/common/render_messages.h" |
13 #include "chrome/common/resource_dispatcher.h" | 13 #include "chrome/common/resource_dispatcher.h" |
| 14 #include "net/http/http_response_headers.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "webkit/appcache/appcache_interfaces.h" | 16 #include "webkit/appcache/appcache_interfaces.h" |
16 | 17 |
17 using webkit_glue::ResourceLoaderBridge; | 18 using webkit_glue::ResourceLoaderBridge; |
18 | 19 |
19 static const char test_page_url[] = "http://www.google.com/"; | 20 static const char test_page_url[] = "http://www.google.com/"; |
20 static const char test_page_headers[] = | 21 static const char test_page_headers[] = |
21 "HTTP/1.1 200 OK\nContent-Type:text/html\n\n"; | 22 "HTTP/1.1 200 OK\nContent-Type:text/html\n\n"; |
22 static const char test_page_mime_type[] = "text/html"; | 23 static const char test_page_mime_type[] = "text/html"; |
23 static const char test_page_charset[] = ""; | 24 static const char test_page_charset[] = ""; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 ResourceLoaderBridge* bridge = CreateBridge(); | 323 ResourceLoaderBridge* bridge = CreateBridge(); |
323 | 324 |
324 bridge->Start(this); | 325 bridge->Start(this); |
325 InitMessages(); | 326 InitMessages(); |
326 | 327 |
327 // Dispatch deferred messages. | 328 // Dispatch deferred messages. |
328 message_loop.RunAllPending(); | 329 message_loop.RunAllPending(); |
329 delete bridge; | 330 delete bridge; |
330 } | 331 } |
331 | 332 |
OLD | NEW |