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

Side by Side Diff: ash/test/test_suite.h

Issue 1293013002: aura: Require explicit ownership of the Env instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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 | « ash/test/ash_interactive_ui_test_base.cc ('k') | ash/test/test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_TEST_TEST_SUITE_H_ 5 #ifndef ASH_TEST_TEST_SUITE_H_
6 #define ASH_TEST_TEST_SUITE_H_ 6 #define ASH_TEST_TEST_SUITE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/test/test_discardable_memory_allocator.h" 9 #include "base/test/test_discardable_memory_allocator.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/win/scoped_com_initializer.h" 14 #include "base/win/scoped_com_initializer.h"
15 #endif 15 #endif
16 16
17 namespace aura {
18 class Env;
19 }
20
17 namespace ash { 21 namespace ash {
18 namespace test { 22 namespace test {
19 23
20 class AuraShellTestSuite : public base::TestSuite { 24 class AuraShellTestSuite : public base::TestSuite {
21 public: 25 public:
22 AuraShellTestSuite(int argc, char** argv); 26 AuraShellTestSuite(int argc, char** argv);
23 ~AuraShellTestSuite() override; 27 ~AuraShellTestSuite() override;
24 28
25 protected: 29 protected:
26 // base::TestSuite: 30 // base::TestSuite:
27 void Initialize() override; 31 void Initialize() override;
28 void Shutdown() override; 32 void Shutdown() override;
29 33
30 private: 34 private:
31 #if defined(OS_WIN) 35 #if defined(OS_WIN)
32 scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_; 36 scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_;
33 #endif 37 #endif
38 scoped_ptr<aura::Env> env_;
34 39
35 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; 40 base::TestDiscardableMemoryAllocator discardable_memory_allocator_;
36 }; 41 };
37 42
38 } // namespace test 43 } // namespace test
39 } // namespace ash 44 } // namespace ash
40 45
41 #endif // ASH_TEST_TEST_SUITE_H_ 46 #endif // ASH_TEST_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « ash/test/ash_interactive_ui_test_base.cc ('k') | ash/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698