Index: ui/compositor/test/compositor_test_api.h |
diff --git a/ui/compositor/test/compositor_test_api.h b/ui/compositor/test/compositor_test_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a72f914220bd0f4005a5a5f47f8a9b7661299ce2 |
--- /dev/null |
+++ b/ui/compositor/test/compositor_test_api.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2015 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_COMPOSITOR_TEST_API_H_ |
+#define UI_COMPOSITOR_TEST_COMPOSITOR_TEST_API_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace cc { |
+struct BeginFrameArgs; |
+} |
+ |
+namespace ui { |
+ |
+class Compositor; |
+ |
+// Use the api in this class to access private members of ui::Compositor. |
+class CompositorTestAPI { |
+ public: |
+ explicit CompositorTestAPI(Compositor* compositor); |
+ |
+ ~CompositorTestAPI(); |
+ |
+ // An accessor for |missed_begin_frame_args_| in ui::Compositor. |
+ cc::BeginFrameArgs missed_begin_frame_args(); |
+ |
+ private: |
+ Compositor* compositor_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CompositorTestAPI); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_COMPOSITOR_TEST_COMPOSITOR_TEST_API_H_ |