Index: ash/laser/laser_pointer_controller_test_api.h |
diff --git a/ash/laser/laser_pointer_controller_test_api.h b/ash/laser/laser_pointer_controller_test_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f4ead93e0d91b8c4ee991c81e1be8f15d261e4af |
--- /dev/null |
+++ b/ash/laser/laser_pointer_controller_test_api.h |
@@ -0,0 +1,37 @@ |
+// 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_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |
jdufault
2016/09/16 18:43:54
nit: ..._TEST_API_H_
sammiequon
2016/09/16 19:21:03
Done.
|
+#define ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |
+ |
+#include <memory> |
jdufault
2016/09/16 18:43:53
Needed?
sammiequon
2016/09/16 19:21:03
Done.
|
+ |
+#include "base/macros.h" |
+ |
+namespace ash { |
+ |
+class LaserPointerController; |
+class LaserPointerPoints; |
+class LaserPointerView; |
+ |
+// An api for testing the LaserPointerController class. |
+class LaserPointerControllerTestApi { |
+ public: |
+ explicit LaserPointerControllerTestApi(LaserPointerController* instance); |
+ ~LaserPointerControllerTestApi(); |
+ |
+ void SetEnabled(bool enabled); |
+ bool IsShowingLaserPointer(); |
+ const LaserPointerPoints& laser_points(); |
+ LaserPointerView* laser_pointer_view(); |
+ |
+ private: |
+ LaserPointerController* instance_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LaserPointerControllerTestApi); |
+}; |
+ |
+} // namespace ash |
+ |
+#endif // ASH_LASER_LASER_POINTER_CONTROLLER_TESTAPI_H_ |