| 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
|
|
|