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

Unified Diff: cc/trees/remote_channel_unittest.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kevin's comments Created 4 years, 7 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
« blimp/net/packet_writer.h ('K') | « cc/trees/remote_channel_impl.cc ('k') | no next file » | 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
index e7a0ef0e91c6e6c8953c2b4a51019a47c5c7fe84..1974c23b6e4b3e0152e210b6a291ad7bc8f533d8 100644
--- a/cc/trees/remote_channel_unittest.cc
+++ b/cc/trees/remote_channel_unittest.cc
@@ -143,10 +143,12 @@ class RemoteChannelTestCommit : public RemoteChannelTest {
void StartCommitOnImpl() override { EXPECT_EQ(2, calls_received_++); }
- void DidCommitAndDrawFrame() override { EXPECT_EQ(3, calls_received_++); }
+ void DidCommitAndDrawFrame() override {
+ calls_received_on_both_server_and_client_++;
+ }
void DidCompleteSwapBuffers() override {
- if (++calls_received_on_both_server_and_client_ == 2)
+ if (++calls_received_on_both_server_and_client_ == 4)
Kevin M 2016/05/20 01:02:04 I know the previous code was written this way, but
vmpstr 2016/05/20 23:26:14 (here and in the above lines please. increment in
shaktisahu 2016/05/22 22:36:58 Done.
shaktisahu 2016/05/22 22:36:58 Done.
EndTest();
}
@@ -157,8 +159,8 @@ class RemoteChannelTestCommit : public RemoteChannelTest {
}
void AfterTest() override {
- EXPECT_EQ(4, calls_received_);
- EXPECT_EQ(2, calls_received_on_both_server_and_client_);
+ EXPECT_EQ(3, calls_received_);
+ EXPECT_EQ(4, calls_received_on_both_server_and_client_);
}
const gfx::Size viewport_size_ = gfx::Size(5, 3);
« blimp/net/packet_writer.h ('K') | « cc/trees/remote_channel_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698