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

Side by Side Diff: ui/gfx/test/run_all_unittests.cc

Issue 291753002: Reland "Move a good set of gfx unit tests into gfx_unittests target." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change to use UI_TEST_PAK Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/test/DEPS ('k') | ui/ui_unittests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/bind.h"
6 #include "base/compiler_specific.h"
7 #include "base/macros.h"
8 #include "base/path_service.h"
9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/base/ui_base_paths.h"
14
15 namespace {
16
17 class GfxTestSuite : public base::TestSuite {
18 public:
19 GfxTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
20
21 protected:
22 virtual void Initialize() OVERRIDE {
23 base::TestSuite::Initialize();
24 ui::RegisterPathProvider();
25
26 base::FilePath ui_test_pak_path;
27 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
28 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
29 }
30
31 virtual void Shutdown() OVERRIDE {
32 ui::ResourceBundle::CleanupSharedInstance();
33 base::TestSuite::Shutdown();
34 }
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(GfxTestSuite);
38 };
39
40 } // namespace
41
42 int main(int argc, char** argv) {
43 GfxTestSuite test_suite(argc, argv);
44
45 return base::LaunchUnitTests(
46 argc,
47 argv,
48 base::Bind(&GfxTestSuite::Run, base::Unretained(&test_suite)));
49 }
OLDNEW
« no previous file with comments | « ui/gfx/test/DEPS ('k') | ui/ui_unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698