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

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

Issue 8508060: Add functionality to the GCAPI to detect when Chrome was last run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
===================================================================
--- chrome/installer/gcapi/gcapi_test.cc (revision 108839)
+++ chrome/installer/gcapi/gcapi_test.cc (working copy)
@@ -1,11 +1,12 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdio.h>
+
#include "chrome/installer/gcapi/gcapi.h"
+#include "testing/gtest/include/gtest/gtest.h"
-#include <stdio.h>
-
void call_statically() {
DWORD reason = 0;
BOOL result_flag_on = FALSE;
@@ -54,6 +55,9 @@
}
int main(int argc, char* argv[]) {
+ testing::InitGoogleTest(&argc, argv);
+ RUN_ALL_TESTS();
+
call_dynamically();
call_statically();
printf("LaunchChrome returned %d.\n", LaunchGoogleChrome());

Powered by Google App Engine
This is Rietveld 408576698