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

Unified Diff: webkit/support/webkit_support.cc

Issue 3148024: Disabling DRT related initializations in unit-test mode, they... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
===================================================================
--- webkit/support/webkit_support.cc (revision 56557)
+++ webkit/support/webkit_support.cc (working copy)
@@ -113,7 +113,7 @@
SimpleResourceLoaderBridge::Shutdown();
}
- TestWebKitClient* webkit_client() { return webkit_client_.get(); }
+ TestWebKitClient* webkit_client() const { return webkit_client_.get(); }
#if defined(OS_WIN)
void set_theme_engine(WebKit::WebThemeEngine* engine) {
@@ -121,7 +121,7 @@
webkit_client_->SetThemeEngine(engine);
}
- WebKit::WebThemeEngine* theme_engine() {
+ WebKit::WebThemeEngine* theme_engine() const {
return webkit_client_->themeEngine();
}
#endif
@@ -181,9 +181,9 @@
const char* kFixedArguments[] = {"DumpRenderTree"};
CommandLine::Init(arraysize(kFixedArguments), kFixedArguments);
- webkit_support::BeforeInitialize();
+ webkit_support::BeforeInitialize(unit_test_mode);
webkit_support::test_environment = new TestEnvironment(unit_test_mode);
- webkit_support::AfterInitialize();
+ webkit_support::AfterInitialize(unit_test_mode);
if (!unit_test_mode) {
// Load ICU data tables. This has to run after TestEnvironment is created
// because on Linux, we need base::AtExitManager.
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698