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

Unified Diff: ash/test/immersive_fullscreen_controller_test_api.h

Issue 2251213004: Moves ImmersiveFullscreenController::SetupForTest into test class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/test/immersive_fullscreen_controller_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/immersive_fullscreen_controller_test_api.h
diff --git a/ash/test/immersive_fullscreen_controller_test_api.h b/ash/test/immersive_fullscreen_controller_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5ca9a1c00f23e85e1c66636212013a4136e8b80
--- /dev/null
+++ b/ash/test/immersive_fullscreen_controller_test_api.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_TEST_IMMERSIVE_FULLSCREEN_CONTROLLER_TEST_API_H_
+#define ASH_TEST_IMMERSIVE_FULLSCREEN_CONTROLLER_TEST_API_H_
+
+#include "base/macros.h"
+
+namespace ash {
+
+class ImmersiveFullscreenController;
+
+// Use by tests to access private state of ImmersiveFullscreenController.
+class ImmersiveFullscreenControllerTestApi {
+ public:
+ explicit ImmersiveFullscreenControllerTestApi(
+ ImmersiveFullscreenController* controller);
+ ~ImmersiveFullscreenControllerTestApi();
+
+ // Disables animations and moves the mouse so that it is not over the
+ // top-of-window views for the sake of testing.
+ void SetupForTest();
+
+ private:
+ ImmersiveFullscreenController* immersive_fullscreen_controller_;
+
+ DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenControllerTestApi);
+};
+
+} // namespace ash
+
+#endif // ASH_TEST_IMMERSIVE_FULLSCREEN_CONTROLLER_TEST_API_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/test/immersive_fullscreen_controller_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698