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

Unified Diff: tools/OmahaCompatibility/main.cc

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « tools/OmahaCompatibility/console_writer.cc ('k') | tools/ReadTag/build.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/OmahaCompatibility/main.cc
diff --git a/tools/OmahaCompatibility/main.cc b/tools/OmahaCompatibility/main.cc
deleted file mode 100644
index 18f1d6a25dca5e4450e7e77be6440bebcf61d1bb..0000000000000000000000000000000000000000
--- a/tools/OmahaCompatibility/main.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2008-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-//
-// Invoke with:
-// omaha_comtibility_test.exe <path>\example_config.txt
-// <path>\GoogleUpdateSetup.exe
-// or if you only want to run the httpserver that reads the config and responds
-// appropriately use
-// OmahaCompatibility.exe <path>\example_config.txt
-//
-
-#include <Windows.h>
-#include <tchar.h>
-#include "omaha/common/vistautil.h"
-#include "omaha/tools/omahacompatibility/compatibility_test.h"
-
-void PrintUsage() {
- wprintf(_T("Incorrect arguments\n")
- _T("Usage:\n")
- _T("OmahaCompatibility <Full path to config file>")
- _T(" <Full path to googleupdatesetup.exe>\n")
- _T("\nor:\n")
- _T("OmahaCompatibility <Full path to config file>")
- _T("Note: The debug version of googleupdatesetup is needed.\n")
- _T("You need to be admin on the machine to run this program,\n")
- _T("although omaha itself does not need admin to run."));
-}
-
-// Set the appropriate update dev registry keys. Url, AuCheckPeriodMs
-// Start the http server.
-// Launch googleupdate.
-int _tmain(int argc, TCHAR* argv[]) {
- if (argc < 2 || argc > 3) {
- PrintUsage();
- return -1;
- }
-
- // TODO(omaha): Remove this requirement. This is needed for now, since we
- // need permissions to write the updatedev key to override the url that omaha
- // talks to.
- if (!omaha::vista_util::IsUserAdmin()) {
- PrintUsage();
- return -1;
- }
-
- omaha::CompatibilityTest compat_test;
- compat_test.set_config_file(argv[1]);
-
- bool test_omaha = false;
- if (argc == 3) {
- compat_test.set_googleupdate_setup_path(argv[2]);
- test_omaha = true;
- }
- return compat_test.Main(test_omaha);
-}
-
« no previous file with comments | « tools/OmahaCompatibility/console_writer.cc ('k') | tools/ReadTag/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698