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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/public/test/content_browser_test.cc ('k') | content/public/test/test_launcher.cc » ('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 "content/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/common/dom_storage/dom_storage_types.h" 8 #include "content/common/dom_storage/dom_storage_types.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if (!render_thread_) 156 if (!render_thread_)
157 render_thread_.reset(new MockRenderThread()); 157 render_thread_.reset(new MockRenderThread());
158 render_thread_->set_routing_id(kRouteId); 158 render_thread_->set_routing_id(kRouteId);
159 render_thread_->set_surface_id(kSurfaceId); 159 render_thread_->set_surface_id(kSurfaceId);
160 render_thread_->set_new_window_routing_id(kNewWindowRouteId); 160 render_thread_->set_new_window_routing_id(kNewWindowRouteId);
161 render_thread_->set_new_frame_routing_id(kNewFrameRouteId); 161 render_thread_->set_new_frame_routing_id(kNewFrameRouteId);
162 162
163 #if defined(OS_MACOSX) 163 #if defined(OS_MACOSX)
164 autorelease_pool_.reset(new base::mac::ScopedNSAutoreleasePool()); 164 autorelease_pool_.reset(new base::mac::ScopedNSAutoreleasePool());
165 #endif 165 #endif
166 command_line_.reset(new CommandLine(CommandLine::NO_PROGRAM)); 166 command_line_.reset(new base::CommandLine(base::CommandLine::NO_PROGRAM));
167 params_.reset(new MainFunctionParams(*command_line_)); 167 params_.reset(new MainFunctionParams(*command_line_));
168 platform_.reset(new RendererMainPlatformDelegate(*params_)); 168 platform_.reset(new RendererMainPlatformDelegate(*params_));
169 platform_->PlatformInitialize(); 169 platform_->PlatformInitialize();
170 170
171 // Setting flags and really doing anything with WebKit is fairly fragile and 171 // Setting flags and really doing anything with WebKit is fairly fragile and
172 // hacky, but this is the world we live in... 172 // hacky, but this is the world we live in...
173 std::string flags("--expose-gc"); 173 std::string flags("--expose-gc");
174 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); 174 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
175 blink::initialize(blink_platform_impl_.Get()); 175 blink::initialize(blink_platform_impl_.Get());
176 176
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(), 433 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(),
434 navigate_params); 434 navigate_params);
435 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message); 435 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message);
436 436
437 // The load actually happens asynchronously, so we pump messages to process 437 // The load actually happens asynchronously, so we pump messages to process
438 // the pending continuation. 438 // the pending continuation.
439 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); 439 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait();
440 } 440 }
441 441
442 } // namespace content 442 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/content_browser_test.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698