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

Unified Diff: cc/trees/remote_channel_unittest.cc

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 years, 11 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
« no previous file with comments | « cc/trees/remote_channel_main.cc ('k') | cc/trees/remote_proto_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/remote_channel_unittest.cc
diff --git a/cc/trees/remote_channel_unittest.cc b/cc/trees/remote_channel_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5c0989fd42e867646ea875a78b781f72c0d281e4
--- /dev/null
+++ b/cc/trees/remote_channel_unittest.cc
@@ -0,0 +1,40 @@
+// 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.
+
+#include "cc/test/layer_tree_test.h"
+
+namespace cc {
+
+class RemoteChannelTest : public LayerTreeTest {
+ protected:
+ RemoteChannelTest() : calls_received_(0) {}
+
+ ~RemoteChannelTest() override {}
+
+ void BeginTest() override {
+ DCHECK(IsRemoteTest());
+ BeginChannelTest();
+ }
+ virtual void BeginChannelTest() {}
+
+ int calls_received_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(RemoteChannelTest);
+};
+
+class RemoteChannelTestMainThreadStoppedFlinging : public RemoteChannelTest {
+ void BeginChannelTest() override { proxy()->MainThreadHasStoppedFlinging(); }
+
+ void MainThreadHasStoppedFlingingOnImpl() override {
+ calls_received_++;
+ EndTest();
+ }
+
+ void AfterTest() override { EXPECT_EQ(1, calls_received_); }
+};
+
+REMOTE_DIRECT_RENDERER_TEST_F(RemoteChannelTestMainThreadStoppedFlinging);
+
+} // namespace cc
« no previous file with comments | « cc/trees/remote_channel_main.cc ('k') | cc/trees/remote_proto_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698