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

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

Issue 1121353002: Added unittest for ui/gl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed (c) Created 5 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
« no previous file with comments | « ui/gl/gl_unittests.isolate ('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 2015 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/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_suite.h"
8
9 #if defined(OS_MACOSX) && !defined(OS_IOS)
10 #include "base/test/mock_chrome_application_mac.h"
11 #endif
12
13 namespace {
14
15 class GlTestSuite : public base::TestSuite {
16 public:
17 GlTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {
18 }
19
20 protected:
21 void Initialize() override {
22 base::TestSuite::Initialize();
23
24 #if defined(OS_MACOSX) && !defined(OS_IOS)
25 mock_cr_app::RegisterMockCrApp();
26 #endif
27 }
28
29 void Shutdown() override {
30 base::TestSuite::Shutdown();
31 }
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(GlTestSuite);
35 };
36
37 } // namespace
38
39 int main(int argc, char** argv) {
40 GlTestSuite test_suite(argc, argv);
41
42 return base::LaunchUnitTests(
43 argc,
44 argv,
45 base::Bind(&GlTestSuite::Run, base::Unretained(&test_suite)));
46 }
OLDNEW
« no previous file with comments | « ui/gl/gl_unittests.isolate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698