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

Side by Side Diff: ash/common/test/ash_test.h

Issue 2803933003: Adds ash_mus_unittests to FYI bot (Closed)
Patch Set: feedback 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 ASH_COMMON_TEST_ASH_TEST_H_ 5 #ifndef ASH_COMMON_TEST_ASH_TEST_H_
6 #define ASH_COMMON_TEST_ASH_TEST_H_ 6 #define ASH_COMMON_TEST_ASH_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 private: 50 private:
51 WmWindow* window_; 51 WmWindow* window_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(WindowOwner); 53 DISALLOW_COPY_AND_ASSIGN(WindowOwner);
54 }; 54 };
55 55
56 // Base class for ash tests. This class calls through to AshTestImpl for the 56 // Base class for ash tests. This class calls through to AshTestImpl for the
57 // real implementation. This class exists so that tests can be written to 57 // real implementation. This class exists so that tests can be written to
58 // ash/common and run in both mus and aura. 58 // ash/common and run in both mus and aura.
59 // 59 //
60 // The implementation of AshTestImpl that is used depends upon gn targets. To 60 // TODO: this class is deprecated and should be removed.
61 // use the aura backend depend on "//ash/test:ash_with_aura_test_support." The 61 // http://crbug.com/707057.
62 // mus backend is not provided as a separate link target.
63 class AshTest : public testing::Test { 62 class AshTest : public testing::Test {
64 public: 63 public:
65 AshTest(); 64 AshTest();
66 ~AshTest() override; 65 ~AshTest() override;
67 66
68 // Returns the WmShelf for the primary display. 67 // Returns the WmShelf for the primary display.
69 static WmShelf* GetPrimaryShelf(); 68 static WmShelf* GetPrimaryShelf();
70 69
71 // Returns the system tray on the primary display. 70 // Returns the system tray on the primary display.
72 static SystemTray* GetPrimarySystemTray(); 71 static SystemTray* GetPrimarySystemTray();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 139
141 private: 140 private:
142 std::unique_ptr<AshTestImpl> test_impl_; 141 std::unique_ptr<AshTestImpl> test_impl_;
143 142
144 DISALLOW_COPY_AND_ASSIGN(AshTest); 143 DISALLOW_COPY_AND_ASSIGN(AshTest);
145 }; 144 };
146 145
147 } // namespace ash 146 } // namespace ash
148 147
149 #endif // ASH_COMMON_TEST_ASH_TEST_H_ 148 #endif // ASH_COMMON_TEST_ASH_TEST_H_
OLDNEW
« no previous file with comments | « ash/app_list/app_list_presenter_delegate_unittest.cc ('k') | ash/display/display_configuration_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698