Index: ash/common/system/chromeos/palette/tools/laser_pointer_testapis.h |
diff --git a/ash/common/system/chromeos/palette/tools/laser_pointer_testapis.h b/ash/common/system/chromeos/palette/tools/laser_pointer_testapis.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6486f175677ee23453869a352758f2653fe17cee |
--- /dev/null |
+++ b/ash/common/system/chromeos/palette/tools/laser_pointer_testapis.h |
@@ -0,0 +1,50 @@ |
+// 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_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_TESTAPIS_H_ |
+#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_TESTAPIS_H_ |
+ |
+#include "ash/common/system/chromeos/palette/tools/laser_pointer_points.h" |
jdufault
2016/08/23 02:11:25
Do you need this include?
sammiequon
2016/08/23 19:30:02
Done.
|
+ |
+namespace ash { |
+ |
+class LaserPointerMode; |
+ |
+// An api for testing the laser_pointer_points class. |
+class LaserPointerPointsTestApi { |
jdufault
2016/08/23 02:11:25
Move these into separate files.
sammiequon
2016/08/23 19:30:02
Done.
|
+ public: |
+ LaserPointerPointsTestApi(std::unique_ptr<LaserPointerPoints> instance); |
+ ~LaserPointerPointsTestApi(); |
+ |
+ int get_number_of_points() const; |
+ void MoveForwardInTime(const base::TimeDelta& delta, |
+ const base::Time& time, |
+ const gfx::Point& location); |
+ |
+ private: |
+ std::unique_ptr<LaserPointerPoints> instance_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LaserPointerPointsTestApi); |
+}; |
+ |
+// An api for testing the laser_pointer_mode class. |
+class LaserPointerModeTestApi { |
+ public: |
+ LaserPointerModeTestApi(std::unique_ptr<LaserPointerMode> instance); |
+ ~LaserPointerModeTestApi(); |
+ |
+ void OnEnable(); |
+ void OnDisable(); |
+ const LaserPointerPoints& laser_points(); |
+ gfx::Point current_mouse_location(); |
+ |
+ private: |
+ std::unique_ptr<LaserPointerMode> instance_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LaserPointerModeTestApi); |
+}; |
+ |
+} // namespace ash |
+ |
+#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_TESTAPIS_H_ |