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

Unified Diff: ui/views/run_all_unittests.cc

Issue 1978293003: Rename ViewTestSuite to ViewsTestSuite and put it in the proper file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@widgetinteractive
Patch Set: rebase 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 | « ui/views/run_all_unittests.h ('k') | ui/views/run_all_unittests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/run_all_unittests.cc
diff --git a/ui/views/run_all_unittests.cc b/ui/views/run_all_unittests.cc
deleted file mode 100644
index e3d37e87ceb1c9c7dfc651b243bf59aed322ff04..0000000000000000000000000000000000000000
--- a/ui/views/run_all_unittests.cc
+++ /dev/null
@@ -1,62 +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.
-
-#include "ui/views/run_all_unittests.h"
-
-#include "base/bind.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/path_service.h"
-#include "base/test/launcher/unit_test_launcher.h"
-#include "base/test/test_suite.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/base/ui_base_paths.h"
-#include "ui/gl/test/gl_surface_test_support.h"
-
-#if defined(USE_AURA)
-#include <memory>
-
-#include "ui/aura/env.h"
-#endif
-
-namespace views {
-
-ViewTestSuite::ViewTestSuite(int argc, char** argv)
- : base::TestSuite(argc, argv), argc_(argc), argv_(argv) {}
-
-ViewTestSuite::~ViewTestSuite() {}
-
-int ViewTestSuite::RunTests() {
- return base::LaunchUnitTests(
- argc_, argv_, base::Bind(&ViewTestSuite::Run, base::Unretained(this)));
-}
-
-int ViewTestSuite::RunTestsSerially() {
- return base::LaunchUnitTestsSerially(
- argc_, argv_, base::Bind(&ViewTestSuite::Run, base::Unretained(this)));
-}
-
-void ViewTestSuite::Initialize() {
- base::TestSuite::Initialize();
- gfx::GLSurfaceTestSupport::InitializeOneOff();
- ui::RegisterPathProvider();
-
- base::FilePath ui_test_pak_path;
- ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
- ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
-#if defined(USE_AURA)
- env_ = aura::Env::CreateInstance();
-#endif
-}
-
-void ViewTestSuite::Shutdown() {
-#if defined(USE_AURA)
- env_.reset();
-#endif
- ui::ResourceBundle::CleanupSharedInstance();
- base::TestSuite::Shutdown();
-}
-
-} // namespace views
« no previous file with comments | « ui/views/run_all_unittests.h ('k') | ui/views/run_all_unittests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698