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

Unified Diff: chrome_frame/chrome_frame_unittest_main.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/chrome_frame_reporting.cc ('k') | chrome_frame/chrome_frame_version.rc.version » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_unittest_main.cc
diff --git a/chrome_frame/chrome_frame_unittest_main.cc b/chrome_frame/chrome_frame_unittest_main.cc
deleted file mode 100644
index 84523d82d8566fadb9dcf02ed20a97b938b27d96..0000000000000000000000000000000000000000
--- a/chrome_frame/chrome_frame_unittest_main.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2010 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 <atlbase.h>
-#include <atlcom.h>
-
-#include "base/at_exit.h"
-#include "base/command_line.h"
-#include "base/process/kill.h"
-#include "base/process/process.h"
-#include "base/test/launcher/unit_test_launcher.h"
-#include "base/test/test_suite.h"
-#include "chrome_frame/crash_server_init.h"
-#include "chrome_frame/test/chrome_frame_test_utils.h"
-#include "gtest/gtest.h"
-
-class ObligatoryModule: public CAtlExeModuleT<ObligatoryModule> {
-};
-
-ObligatoryModule g_obligatory_atl_module;
-
-static base::AtExitManager* g_at_exit_manager = NULL;
-
-void DeleteAllSingletons() {
- if (g_at_exit_manager) {
- g_at_exit_manager->ProcessCallbacksNow();
- }
-}
-
-namespace {
-
-class NoAtExitBaseTestSuite : public base::TestSuite {
- public:
- NoAtExitBaseTestSuite(int argc, char** argv)
- : base::TestSuite(argc, argv, false) {
- }
-};
-
-int RunTests(int argc, char** argv) {
- base::AtExitManager at_exit_manager;
- g_at_exit_manager = &at_exit_manager;
- NoAtExitBaseTestSuite test_suite(argc, argv);
- int exit_code = test_suite.Run();
- g_at_exit_manager = NULL;
- return exit_code;
-}
-
-} // namespace
-
-int main(int argc, char** argv) {
- base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
-
- google_breakpad::scoped_ptr<google_breakpad::ExceptionHandler> breakpad(
- InitializeCrashReporting(HEADLESS));
-
- int exit_code = base::LaunchUnitTests(argc,
- argv,
- base::Bind(&RunTests, argc, argv));
-
- if (crash_service)
- base::KillProcess(crash_service, 0, false);
-
- return exit_code;
-}
« no previous file with comments | « chrome_frame/chrome_frame_reporting.cc ('k') | chrome_frame/chrome_frame_version.rc.version » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698