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

Unified Diff: ios/web/test/web_test_suite.cc

Issue 1972903003: [ios] Register test web schemes in WebTestSuite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments to |web_client_|. Created 4 years, 7 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 | « ios/web/test/web_test_suite.h ('k') | ios/web/test/web_test_suite.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_test_suite.cc
diff --git a/ios/web/test/web_test_suite.cc b/ios/web/test/web_test_suite.cc
deleted file mode 100644
index ec72565024b87a8d2dc14b450f73acb198b1fbea..0000000000000000000000000000000000000000
--- a/ios/web/test/web_test_suite.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 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 "ios/web/test/web_test_suite.h"
-
-#include "base/macros.h"
-#include "base/metrics/statistics_recorder.h"
-#include "ios/web/web_thread_impl.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace web {
-
-class WebTestSuiteListener : public testing::EmptyTestEventListener {
- public:
- WebTestSuiteListener() {}
- void OnTestEnd(const testing::TestInfo& test_info) override {
- WebThreadImpl::FlushThreadPoolHelperForTesting();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WebTestSuiteListener);
-};
-
-WebTestSuite::WebTestSuite(int argc, char** argv)
- : base::TestSuite(argc, argv) {
-}
-
-WebTestSuite::~WebTestSuite() {
-}
-
-void WebTestSuite::Initialize() {
- base::TestSuite::Initialize();
-
- // Initialize the histograms subsystem, so that any histograms hit in tests
- // are correctly registered with the statistics recorder and can be queried
- // by tests.
- base::StatisticsRecorder::Initialize();
-
- testing::UnitTest::GetInstance()->listeners().Append(
- new WebTestSuiteListener);
-}
-
-} // namespace web
« no previous file with comments | « ios/web/test/web_test_suite.h ('k') | ios/web/test/web_test_suite.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698