OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/renderer/safe_browsing/render_view_fake_resources_test.h" | 5 #include "chrome/renderer/safe_browsing/render_view_fake_resources_test.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "chrome/common/dom_storage_common.h" | |
13 #include "chrome/common/render_messages.h" | 12 #include "chrome/common/render_messages.h" |
14 #include "chrome/common/render_messages_params.h" | 13 #include "chrome/common/render_messages_params.h" |
15 #include "chrome/renderer/mock_render_process.h" | 14 #include "chrome/renderer/mock_render_process.h" |
16 #include "chrome/renderer/render_thread.h" | 15 #include "chrome/renderer/render_thread.h" |
17 #include "chrome/renderer/render_view.h" | 16 #include "chrome/renderer/render_view.h" |
18 #include "chrome/renderer/renderer_main_platform_delegate.h" | 17 #include "chrome/renderer/renderer_main_platform_delegate.h" |
| 18 #include "content/common/dom_storage_common.h" |
19 #include "content/common/main_function_params.h" | 19 #include "content/common/main_function_params.h" |
20 #include "content/common/resource_messages.h" | 20 #include "content/common/resource_messages.h" |
21 #include "content/common/resource_response.h" | 21 #include "content/common/resource_response.h" |
22 #include "content/common/sandbox_init_wrapper.h" | 22 #include "content/common/sandbox_init_wrapper.h" |
23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
24 #include "net/base/upload_data.h" | 24 #include "net/base/upload_data.h" |
25 #include "net/http/http_response_headers.h" | 25 #include "net/http/http_response_headers.h" |
26 #include "net/url_request/url_request_status.h" | 26 #include "net/url_request/url_request_status.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 void RenderViewFakeResourcesTest::OnRenderViewReady() { | 179 void RenderViewFakeResourcesTest::OnRenderViewReady() { |
180 // Grab a pointer to the new view using RenderViewVisitor. | 180 // Grab a pointer to the new view using RenderViewVisitor. |
181 ASSERT_TRUE(!view_); | 181 ASSERT_TRUE(!view_); |
182 RenderView::ForEach(this); | 182 RenderView::ForEach(this); |
183 ASSERT_TRUE(view_); | 183 ASSERT_TRUE(view_); |
184 message_loop_.Quit(); | 184 message_loop_.Quit(); |
185 } | 185 } |
186 | 186 |
187 } // namespace safe_browsing | 187 } // namespace safe_browsing |
OLD | NEW |