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

Side by Side Diff: ui/views/views_test_suite.h

Issue 2807833002: [views-mus] Prevent creating a native OzonePlatform in mus tests. (Closed)
Patch Set: sky comments Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_VIEWS_TEST_SUITE_H_ 5 #ifndef UI_VIEWS_VIEWS_TEST_SUITE_H_
6 #define UI_VIEWS_VIEWS_TEST_SUITE_H_ 6 #define UI_VIEWS_VIEWS_TEST_SUITE_H_
7 7
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 9
10 #if defined(USE_AURA) 10 #if defined(USE_AURA)
(...skipping 12 matching lines...) Expand all
23 ~ViewsTestSuite() override; 23 ~ViewsTestSuite() override;
24 24
25 int RunTests(); 25 int RunTests();
26 int RunTestsSerially(); 26 int RunTestsSerially();
27 27
28 protected: 28 protected:
29 // base::TestSuite: 29 // base::TestSuite:
30 void Initialize() override; 30 void Initialize() override;
31 void Shutdown() override; 31 void Shutdown() override;
32 32
33 #if defined(USE_AURA)
34 // Different test suites may wish to create Env differently.
35 virtual void InitializeEnv();
36 virtual void DestroyEnv();
37 #endif
38
33 private: 39 private:
34 #if defined(USE_AURA) 40 #if defined(USE_AURA)
35 std::unique_ptr<aura::Env> env_; 41 std::unique_ptr<aura::Env> env_;
36 #endif 42 #endif
37 int argc_; 43 int argc_;
38 char** argv_; 44 char** argv_;
39 45
40 DISALLOW_COPY_AND_ASSIGN(ViewsTestSuite); 46 DISALLOW_COPY_AND_ASSIGN(ViewsTestSuite);
41 }; 47 };
42 48
43 } // namespace 49 } // namespace
44 50
45 #endif // UI_VIEWS_VIEWS_TEST_SUITE_H_ 51 #endif // UI_VIEWS_VIEWS_TEST_SUITE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698