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

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: Code review feedback. 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
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
+ }
}
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698