Index: ui/compositor/test/layer_animator_collection_test_controller.h |
diff --git a/ui/compositor/test/layer_animator_collection_test_controller.h b/ui/compositor/test/layer_animator_collection_test_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e305b5443cfc4a5d9d2dd7c7fb1c494a9e559e27 |
--- /dev/null |
+++ b/ui/compositor/test/layer_animator_collection_test_controller.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2014 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 UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_ |
+#define UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_ |
+ |
+#include "ui/compositor/layer_animator_collection.h" |
+ |
+namespace ui { |
+ |
+// Allows tests to access the animators in the collection. |
+class LayerAnimatorCollectionTestController { |
+ public: |
+ explicit LayerAnimatorCollectionTestController( |
+ LayerAnimatorCollection* collection); |
+ ~LayerAnimatorCollectionTestController(); |
+ |
+ void StopAllAnimators(); |
+ |
+ private: |
+ LayerAnimatorCollection* collection_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LayerAnimatorCollectionTestController); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_ |