Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: ui/compositor/test/compositor_test_api.h

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698