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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/test/layer_tree_test.h"
6
7 namespace cc {
8
9 class RemoteChannelTest : public LayerTreeTest {
10 protected:
11 RemoteChannelTest() : calls_received_(0) {}
12
13 ~RemoteChannelTest() override {}
14
15 void BeginTest() override {
16 DCHECK(IsRemoteTest());
17 BeginChannelTest();
18 }
19 virtual void BeginChannelTest() {}
20
21 int calls_received_;
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(RemoteChannelTest);
25 };
26
27 class RemoteChannelTestMainThreadStoppedFlinging : public RemoteChannelTest {
28 void BeginChannelTest() override { proxy()->MainThreadHasStoppedFlinging(); }
29
30 void MainThreadHasStoppedFlingingOnImpl() override {
31 calls_received_++;
32 EndTest();
33 }
34
35 void AfterTest() override { EXPECT_EQ(1, calls_received_); }
36 };
37
38 REMOTE_DIRECT_RENDERER_TEST_F(RemoteChannelTestMainThreadStoppedFlinging);
39
40 } // namespace cc
OLDNEW
« 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