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

Unified Diff: webrtc/test/test_suite.cc

Issue 2540693002: Replace test_support_main by test_main and get rid of test_support_main_threaded_mac (Closed)
Patch Set: Adressed comments. Created 4 years 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 | « webrtc/test/test_suite.h ('k') | webrtc/test/testsupport/mac/run_threaded_main_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/test_suite.cc
diff --git a/webrtc/test/test_suite.cc b/webrtc/test/test_suite.cc
deleted file mode 100644
index e7adfc8ec5c626775c364c8304fae604809739ad..0000000000000000000000000000000000000000
--- a/webrtc/test/test_suite.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "webrtc/test/test_suite.h"
-
-#include "gflags/gflags.h"
-#include "webrtc/base/logging.h"
-#include "webrtc/system_wrappers/include/metrics_default.h"
-#include "webrtc/test/field_trial.h"
-#include "webrtc/test/gmock.h"
-#include "webrtc/test/gtest.h"
-#include "webrtc/test/testsupport/fileutils.h"
-#include "webrtc/test/testsupport/trace_to_stderr.h"
-
-DEFINE_bool(logs, false, "print logs to stderr");
-
-DEFINE_string(force_fieldtrials, "",
- "Field trials control experimental feature code which can be forced. "
- "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
- " will assign the group Enable to field trial WebRTC-FooFeature.");
-
-namespace webrtc {
-namespace test {
-
-TestSuite::TestSuite(int argc, char** argv) {
- SetExecutablePath(argv[0]);
- testing::InitGoogleMock(&argc, argv); // Runs InitGoogleTest() internally.
- // AllowCommandLineParsing allows us to ignore flags passed on to us by
- // Chromium build bots without having to explicitly disable them.
- google::AllowCommandLineReparsing();
- google::ParseCommandLineFlags(&argc, &argv, true);
-
- webrtc::test::InitFieldTrialsFromString(FLAGS_force_fieldtrials);
- webrtc::metrics::Enable();
-}
-
-TestSuite::~TestSuite() {
-}
-
-int TestSuite::Run() {
- Initialize();
- int result = RUN_ALL_TESTS();
- Shutdown();
- return result;
-}
-
-void TestSuite::Initialize() {
- rtc::LogMessage::SetLogToStderr(FLAGS_logs);
- if (FLAGS_logs)
- trace_to_stderr_.reset(new TraceToStderr);
-}
-
-void TestSuite::Shutdown() {
-}
-
-} // namespace test
-} // namespace webrtc
« no previous file with comments | « webrtc/test/test_suite.h ('k') | webrtc/test/testsupport/mac/run_threaded_main_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698