Chromium Code Reviews| Index: ash/common/system/chromeos/palette/tools/laser_pointer_points_test_api.h |
| diff --git a/ash/common/system/chromeos/palette/tools/laser_pointer_points_test_api.h b/ash/common/system/chromeos/palette/tools/laser_pointer_points_test_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..93b45c36ab217670538ff8bdc61debfbc0740043 |
| --- /dev/null |
| +++ b/ash/common/system/chromeos/palette/tools/laser_pointer_points_test_api.h |
| @@ -0,0 +1,34 @@ |
| +// 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_POINTS_TESTAPI_H_ |
| +#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_POINTS_TESTAPI_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/time/time.h" |
| + |
| +namespace ash { |
| + |
| +class LaserPointerPoints; |
| + |
| +// An api for testing the laser_pointer_points class. |
| +class LaserPointerPointsTestApi { |
| + public: |
| + LaserPointerPointsTestApi(std::unique_ptr<LaserPointerPoints> instance); |
| + ~LaserPointerPointsTestApi(); |
| + |
| + int GetNumberOfPoints() const; |
| + void MoveForwardInTime(const base::TimeDelta& delta); |
|
jdufault
2016/08/24 00:20:57
Add a comment to this function saying it moves exi
sammiequon
2016/08/24 17:30:19
Done.
|
| + |
| + private: |
| + // The time the new points are added. |
| + base::Time new_point_time_; |
| + std::unique_ptr<LaserPointerPoints> instance_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LaserPointerPointsTestApi); |
| +}; |
| +} // namespace ash |
| + |
| +#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_POINTS_TESTAPI_H_ |