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

Unified Diff: webkit/support/platform_support_gtk.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.h ('k') | webkit/support/platform_support_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/platform_support_gtk.cc
===================================================================
--- webkit/support/platform_support_gtk.cc (revision 56557)
+++ webkit/support/platform_support_gtk.cc (working copy)
@@ -25,10 +25,12 @@
// TODO(tkent): Implement some of the followings for platform-dependent tasks
// such as loading resource.
-void BeforeInitialize() {
+void BeforeInitialize(bool unit_test_mode) {
}
-void AfterInitialize() {
+void AfterInitialize(bool unit_test_mode) {
+ if (unit_test_mode)
+ return; // We don't have a resource pack when running the unit-tests.
g_resource_data_pack = new base::DataPack;
FilePath data_path;
PathService::Get(base::DIR_EXE, &data_path);
« no previous file with comments | « webkit/support/platform_support.h ('k') | webkit/support/platform_support_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698