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

Unified Diff: chrome/test/test_launcher/run_all_unittests.cc

Issue 1310003: [GTTF] Remove the in-process test launcher, which is no longer used.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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/test/test_launcher/in_proc_test_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_launcher/run_all_unittests.cc
===================================================================
--- chrome/test/test_launcher/run_all_unittests.cc (revision 42520)
+++ chrome/test/test_launcher/run_all_unittests.cc (working copy)
@@ -1,45 +0,0 @@
-// Copyright (c) 2009 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 "base/string_util.h"
-#include "chrome/test/unit/chrome_test_suite.h"
-
-#if defined(OS_WIN)
-#define DLLEXPORT __declspec(dllexport)
-#else
-#define DLLEXPORT
-#define CDECL
-#endif
-
-// We use extern C for the prototype DLLEXPORT to avoid C++ name mangling.
-extern "C" {
-DLLEXPORT int CDECL RunTests(int argc, char **argv) {
- return ChromeTestSuite(argc, argv).Run();
-}
-
-#if defined(OS_WIN)
-DLLEXPORT int CDECL UninitializeTest() {
- // The CRichEditCtrl (used by the omnibox) calls OleInitialize, but somehow
- // does not always calls OleUninitialize, causing an unbalanced Ole
- // initialization that triggers a DCHECK in ScopedOleInitializer the next
- // time we run a test.
- // This behavior has been seen on some Vista boxes, but not all of them.
- // There is a flag to prevent Ole initialization in CRichEditCtrl (see
- // http://support.microsoft.com/kb/238989), but it is set to 0 in recent
- // Windows versions.
- // This is a dirty hack to make sure the OleCount is back to 0 in all cases,
- // so the next test will have Ole unitialized, as expected.
-
- if (OleInitialize(NULL) == S_FALSE) {
- // We were already initialized, balance that extra-initialization.
- OleUninitialize();
- }
- // Balance the OleInitialize from the above test.
- OleUninitialize();
-
- return 0; // 0 means uninitialization OK.
-}
-#endif
-
-}
« no previous file with comments | « chrome/test/test_launcher/in_proc_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698