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

Unified Diff: chrome/installer/gcapi/gcapi_test.cc

Issue 9288056: Implementation of GCAPI reactivation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pre-review cleanup Created 8 years, 11 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
Index: chrome/installer/gcapi/gcapi_test.cc
diff --git a/chrome/installer/gcapi/gcapi_test.cc b/chrome/installer/gcapi/gcapi_test.cc
index 2100744160cfd81160f8a00d18e0cc854141c3e5..b7f08bb1c74e7ce21d814c13609ffb0c21281359 100644
--- a/chrome/installer/gcapi/gcapi_test.cc
+++ b/chrome/installer/gcapi/gcapi_test.cc
@@ -4,6 +4,7 @@
#include <stdio.h>
+#include "base/command_line.h"
#include "chrome/installer/gcapi/gcapi.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -54,11 +55,17 @@ void call_dynamically() {
FreeLibrary(module);
}
+const char kManualLaunchTests[] = "launch-chrome";
+
int main(int argc, char* argv[]) {
+ CommandLine::Init(argc, argv);
+
testing::InitGoogleTest(&argc, argv);
RUN_ALL_TESTS();
- call_dynamically();
- call_statically();
- printf("LaunchChrome returned %d.\n", LaunchGoogleChrome());
+ if (CommandLine::ForCurrentProcess()->HasSwitch(kManualLaunchTests)) {
+ call_dynamically();
+ call_statically();
+ printf("LaunchChrome returned %d.\n", LaunchGoogleChrome());
+ }
Roger Tawa OOO till Jul 10th 2012/01/29 16:32:42 what's this check for?
robertshield 2012/01/30 02:40:39 Before I started messing around in gcapi, the test
}

Powered by Google App Engine
This is Rietveld 408576698