| OLD | NEW |
| 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/public/test/render_view_fake_resources_test.h" | 5 #include "content/public/test/render_view_fake_resources_test.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/process.h" | 9 #include "base/process.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 message.routing_id(), | 171 message.routing_id(), |
| 172 request_id, | 172 request_id, |
| 173 handle, | 173 handle, |
| 174 body.size(), | 174 body.size(), |
| 175 body.size()))); | 175 body.size()))); |
| 176 | 176 |
| 177 ASSERT_TRUE(channel_->Send(new ResourceMsg_RequestComplete( | 177 ASSERT_TRUE(channel_->Send(new ResourceMsg_RequestComplete( |
| 178 message.routing_id(), | 178 message.routing_id(), |
| 179 request_id, | 179 request_id, |
| 180 net::URLRequestStatus(), | 180 net::URLRequestStatus(), |
| 181 false, |
| 181 std::string(), | 182 std::string(), |
| 182 base::TimeTicks()))); | 183 base::TimeTicks()))); |
| 183 } | 184 } |
| 184 | 185 |
| 185 void RenderViewFakeResourcesTest::OnRenderViewReady() { | 186 void RenderViewFakeResourcesTest::OnRenderViewReady() { |
| 186 // Grab a pointer to the new view using RenderViewVisitor. | 187 // Grab a pointer to the new view using RenderViewVisitor. |
| 187 ASSERT_TRUE(!view_); | 188 ASSERT_TRUE(!view_); |
| 188 RenderView::ForEach(this); | 189 RenderView::ForEach(this); |
| 189 ASSERT_TRUE(view_); | 190 ASSERT_TRUE(view_); |
| 190 message_loop_.Quit(); | 191 message_loop_.Quit(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 204 params.url = GURL(history_item.urlString()); | 205 params.url = GURL(history_item.urlString()); |
| 205 params.transition = PAGE_TRANSITION_FORWARD_BACK; | 206 params.transition = PAGE_TRANSITION_FORWARD_BACK; |
| 206 params.state = webkit_glue::HistoryItemToString(history_item); | 207 params.state = webkit_glue::HistoryItemToString(history_item); |
| 207 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; | 208 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; |
| 208 params.request_time = base::Time::Now(); | 209 params.request_time = base::Time::Now(); |
| 209 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); | 210 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); |
| 210 message_loop_.Run(); | 211 message_loop_.Run(); |
| 211 } | 212 } |
| 212 | 213 |
| 213 } // namespace content | 214 } // namespace content |
| OLD | NEW |