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

Side by Side Diff: ui/app_list/shower/test/run_all_unittests.cc

Issue 1890583002: Renaming App List Shower to App List Presenter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 8 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
« no previous file with comments | « ui/app_list/shower/test/app_list_shower_impl_test_api.cc ('k') | no next file » | 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 2016 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/macros.h"
7 #include "base/path_service.h"
8 #include "base/test/launcher/unit_test_launcher.h"
9 #include "base/test/test_suite.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/resource/resource_bundle.h"
12 #include "ui/base/ui_base_paths.h"
13 #include "ui/gl/test/gl_surface_test_support.h"
14
15 namespace {
16
17 class AppListShowerTestSuite : public base::TestSuite {
18 public:
19 AppListShowerTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
20
21 protected:
22 void Initialize() override {
23 gfx::GLSurfaceTestSupport::InitializeOneOff();
24 base::TestSuite::Initialize();
25 ui::RegisterPathProvider();
26
27 base::FilePath ui_test_pak_path;
28 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
29 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
30 }
31
32 void Shutdown() override {
33 ui::ResourceBundle::CleanupSharedInstance();
34 base::TestSuite::Shutdown();
35 }
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(AppListShowerTestSuite);
39 };
40
41 } // namespace
42
43 int main(int argc, char** argv) {
44 AppListShowerTestSuite test_suite(argc, argv);
45
46 return base::LaunchUnitTests(
47 argc, argv,
48 base::Bind(&AppListShowerTestSuite::Run, base::Unretained(&test_suite)));
49 }
OLDNEW
« no previous file with comments | « ui/app_list/shower/test/app_list_shower_impl_test_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698