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

Unified Diff: base/test/test_suite.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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 | « base/test/test_simple_task_runner.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_suite.h
diff --git a/base/test/test_suite.h b/base/test/test_suite.h
deleted file mode 100644
index cf0dd3aec3ae6f145359e517c884503aafd13fed..0000000000000000000000000000000000000000
--- a/base/test/test_suite.h
+++ /dev/null
@@ -1,93 +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.
-
-#ifndef BASE_TEST_TEST_SUITE_H_
-#define BASE_TEST_TEST_SUITE_H_
-
-// Defines a basic test suite framework for running gtest based tests. You can
-// instantiate this class in your main function and call its Run method to run
-// any gtest based tests that are linked into your executable.
-
-#include <string>
-
-#include "base/at_exit.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/test/trace_to_file.h"
-
-namespace testing {
-class TestInfo;
-}
-
-namespace base {
-
-// Instantiates TestSuite, runs it and returns exit code.
-int RunUnitTestsUsingBaseTestSuite(int argc, char **argv);
-
-class TestSuite {
- public:
- // Match function used by the GetTestCount method.
- typedef bool (*TestMatch)(const testing::TestInfo&);
-
- TestSuite(int argc, char** argv);
-#if defined(OS_WIN)
- TestSuite(int argc, wchar_t** argv);
-#endif // defined(OS_WIN)
- virtual ~TestSuite();
-
- // Returns true if the test is marked as "MAYBE_".
- // When using different prefixes depending on platform, we use MAYBE_ and
- // preprocessor directives to replace MAYBE_ with the target prefix.
- static bool IsMarkedMaybe(const testing::TestInfo& test);
-
- void CatchMaybeTests();
-
- void ResetCommandLine();
-
- void AddTestLauncherResultPrinter();
-
- int Run();
-
- protected:
- // This constructor is only accessible to specialized test suite
- // implementations which need to control the creation of an AtExitManager
- // instance for the duration of the test.
- TestSuite(int argc, char** argv, bool create_at_exit_manager);
-
- // By default fatal log messages (e.g. from DCHECKs) result in error dialogs
- // which gum up buildbots. Use a minimalistic assert handler which just
- // terminates the process.
- static void UnitTestAssertHandler(const std::string& str);
-
- // Disable crash dialogs so that it doesn't gum up the buildbot
- virtual void SuppressErrorDialogs();
-
- // Override these for custom initialization and shutdown handling. Use these
- // instead of putting complex code in your constructor/destructor.
-
- virtual void Initialize();
- virtual void Shutdown();
-
- // Make sure that we setup an AtExitManager so Singleton objects will be
- // destroyed.
- scoped_ptr<base::AtExitManager> at_exit_manager_;
-
- private:
- void InitializeFromCommandLine(int argc, char** argv);
-#if defined(OS_WIN)
- void InitializeFromCommandLine(int argc, wchar_t** argv);
-#endif // defined(OS_WIN)
-
- // Basic initialization for the test suite happens here.
- void PreInitialize(bool create_at_exit_manager);
-
- test::TraceToFile trace_to_file_;
-
- bool initialized_command_line_;
-
- DISALLOW_COPY_AND_ASSIGN(TestSuite);
-};
-
-} // namespace base
-
-#endif // BASE_TEST_TEST_SUITE_H_
« no previous file with comments | « base/test/test_simple_task_runner.cc ('k') | base/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698