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

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

Issue 2370913002: Removes AshTestBase::SupportsHostWindowResize (Closed)
Patch Set: feedback Created 4 years, 2 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 (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_ASH_TEST_BASE_H_ 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_
6 #define ASH_TEST_ASH_TEST_BASE_H_ 6 #define ASH_TEST_ASH_TEST_BASE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Returns the rotation currentl active for the display |id|. 125 // Returns the rotation currentl active for the display |id|.
126 static display::Display::Rotation GetActiveDisplayRotation(int64_t id); 126 static display::Display::Rotation GetActiveDisplayRotation(int64_t id);
127 127
128 // Returns the rotation currently active for the internal display. 128 // Returns the rotation currently active for the internal display.
129 static display::Display::Rotation GetCurrentInternalDisplayRotation(); 129 static display::Display::Rotation GetCurrentInternalDisplayRotation();
130 130
131 // Proxy to AshTestHelper::SupportsMultipleDisplays(). 131 // Proxy to AshTestHelper::SupportsMultipleDisplays().
132 static bool SupportsMultipleDisplays(); 132 static bool SupportsMultipleDisplays();
133 133
134 // Proxy to AshTestHelper::SupportsHostWindowResize().
135 static bool SupportsHostWindowResize();
136
137 void set_start_session(bool start_session) { start_session_ = start_session; } 134 void set_start_session(bool start_session) { start_session_ = start_session; }
138 135
139 // Sets material mode for the test. This will override material mode set via 136 // Sets material mode for the test. This will override material mode set via
140 // command line switches. 137 // command line switches.
141 void set_material_mode(MaterialDesignController::Mode material_mode) { 138 void set_material_mode(MaterialDesignController::Mode material_mode) {
142 CHECK(!setup_called_); 139 CHECK(!setup_called_);
143 material_mode_ = material_mode; 140 material_mode_ = material_mode;
144 } 141 }
145 142
146 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } 143 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 ~NoSessionAshTestBase() override {} 189 ~NoSessionAshTestBase() override {}
193 190
194 private: 191 private:
195 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 192 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
196 }; 193 };
197 194
198 } // namespace test 195 } // namespace test
199 } // namespace ash 196 } // namespace ash
200 197
201 #endif // ASH_TEST_ASH_TEST_BASE_H_ 198 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698