| 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" | 
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 176       request_id, | 176       request_id, | 
| 177       handle, | 177       handle, | 
| 178       body.size(), | 178       body.size(), | 
| 179       body.size()))); | 179       body.size()))); | 
| 180 | 180 | 
| 181   ASSERT_TRUE(channel_->Send(new ResourceMsg_RequestComplete( | 181   ASSERT_TRUE(channel_->Send(new ResourceMsg_RequestComplete( | 
| 182       message.routing_id(), | 182       message.routing_id(), | 
| 183       request_id, | 183       request_id, | 
| 184       net::URLRequestStatus(), | 184       net::URLRequestStatus(), | 
| 185       std::string(), | 185       std::string(), | 
| 186       base::Time()))); | 186       base::TimeTicks()))); | 
| 187 } | 187 } | 
| 188 | 188 | 
| 189 void RenderViewFakeResourcesTest::OnRenderViewReady() { | 189 void RenderViewFakeResourcesTest::OnRenderViewReady() { | 
| 190   // Grab a pointer to the new view using RenderViewVisitor. | 190   // Grab a pointer to the new view using RenderViewVisitor. | 
| 191   ASSERT_TRUE(!view_); | 191   ASSERT_TRUE(!view_); | 
| 192   RenderView::ForEach(this); | 192   RenderView::ForEach(this); | 
| 193   ASSERT_TRUE(view_); | 193   ASSERT_TRUE(view_); | 
| 194   message_loop_.Quit(); | 194   message_loop_.Quit(); | 
| 195 } | 195 } | 
| 196 | 196 | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 207   params.url = GURL(history_item.urlString()); | 207   params.url = GURL(history_item.urlString()); | 
| 208   params.transition = PageTransition::FORWARD_BACK; | 208   params.transition = PageTransition::FORWARD_BACK; | 
| 209   params.state = webkit_glue::HistoryItemToString(history_item); | 209   params.state = webkit_glue::HistoryItemToString(history_item); | 
| 210   params.navigation_type = ViewMsg_Navigate_Type::NORMAL; | 210   params.navigation_type = ViewMsg_Navigate_Type::NORMAL; | 
| 211   params.request_time = base::Time::Now(); | 211   params.request_time = base::Time::Now(); | 
| 212   channel_->Send(new ViewMsg_Navigate(view_->routing_id(), params)); | 212   channel_->Send(new ViewMsg_Navigate(view_->routing_id(), params)); | 
| 213   message_loop_.Run(); | 213   message_loop_.Run(); | 
| 214 } | 214 } | 
| 215 | 215 | 
| 216 }  // namespace safe_browsing | 216 }  // namespace safe_browsing | 
| OLD | NEW | 
|---|