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

Unified Diff: chrome_frame/test/reliability/run_all_unittests.cc

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 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_frame/test/reliability/reliability_test_suite.h ('k') | chrome_frame/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/reliability/run_all_unittests.cc
diff --git a/chrome_frame/test/reliability/run_all_unittests.cc b/chrome_frame/test/reliability/run_all_unittests.cc
deleted file mode 100644
index 72b8ef8c3c02f39b4aeb821d0a80ad88da260752..0000000000000000000000000000000000000000
--- a/chrome_frame/test/reliability/run_all_unittests.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 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 "chrome_frame/test/reliability/reliability_test_suite.h"
-
-#include "base/command_line.h"
-#include "base/process/kill.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome_frame/test/chrome_frame_test_utils.h"
-#include "chrome_frame/test_utils.h"
-#include "chrome_frame/utils.h"
-
-static const char kRegisterDllFlag[] = "register";
-
-int main(int argc, char **argv) {
- ScopedChromeFrameRegistrar::RegisterAndExitProcessIfDirected();
- // We create this slightly early as it is the one who instantiates THE
- // AtExitManager which some of the other stuff below relies on.
- ReliabilityTestSuite test_suite(argc, argv);
-
- SetConfigBool(kChromeFrameHeadlessMode, true);
- base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
-
- int result = -1;
- // If --register is passed, then we need to ensure that Chrome Frame is
- // registered before starting up the reliability tests.
- CommandLine* cmd_line = CommandLine::ForCurrentProcess();
- DCHECK(cmd_line);
- if (!cmd_line) {
- NOTREACHED() << "CommandLine object not initialized";
- return result;
- }
- if (cmd_line->HasSwitch(kRegisterDllFlag)) {
- std::wstring dll_path = cmd_line->GetSwitchValueNative(kRegisterDllFlag);
-
- // Run() must be called within the scope of the ScopedChromeFrameRegistrar
- // to ensure that the correct DLL remains registered during the tests.
- ScopedChromeFrameRegistrar scoped_chrome_frame_registrar(
- dll_path, ScopedChromeFrameRegistrar::SYSTEM_LEVEL);
- result = test_suite.Run();
- } else {
- result = test_suite.Run();
- }
-
- DeleteConfigValue(kChromeFrameHeadlessMode);
- if (crash_service)
- base::KillProcess(crash_service, 0, false);
-
- return result;
-}
-
« no previous file with comments | « chrome_frame/test/reliability/reliability_test_suite.h ('k') | chrome_frame/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698