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

Unified Diff: cc/layers/texture_layer_unittest.cc

Issue 2726293002: Revert of TestCompositorFrameSink should use CompositorFrameSinkSupport (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/test/test_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_unittest.cc
diff --git a/cc/layers/texture_layer_unittest.cc b/cc/layers/texture_layer_unittest.cc
index a7c59ba9c8486aa1c6418f2465c34d6315436de7..998c6291e3b13e612b3a0908286e3eee16a23dc0 100644
--- a/cc/layers/texture_layer_unittest.cc
+++ b/cc/layers/texture_layer_unittest.cc
@@ -1176,16 +1176,6 @@
void MailboxReleased(const gpu::SyncToken& sync_token, bool lost_resource) {
EXPECT_TRUE(sync_token.HasData());
++mailbox_returned_;
- switch (mailbox_returned_) {
- case 1:
- break;
- case 2:
- EXPECT_EQ(commit_count_, 5);
- EndTest();
- break;
- default:
- NOTREACHED();
- }
}
void SetupTree() override {
@@ -1250,6 +1240,8 @@
texture_layer_->ClearClient();
break;
case 5:
+ EXPECT_EQ(2, mailbox_returned_);
+ EndTest();
break;
default:
NOTREACHED();
« no previous file with comments | « no previous file | cc/test/test_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698