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

Unified Diff: cc/layers/layer_unittest.cc

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 5 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/layers/layer_impl.cc ('k') | cc/layers/video_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_unittest.cc
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc
index cd9f0d07478c4122f7377c2eaa6da82e06a97c03..0d6e723c0d265c037249c3f7eab2af12ee7ed5a9 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -172,6 +172,7 @@ class LayerSerializationTest : public testing::Test {
dest->offset_to_transform_parent_);
EXPECT_EQ(src->inputs_.double_sided, dest->inputs_.double_sided);
EXPECT_EQ(src->draws_content_, dest->draws_content_);
+ EXPECT_EQ(src->may_contain_video_, dest->may_contain_video_);
EXPECT_EQ(src->inputs_.hide_layer_and_subtree,
dest->inputs_.hide_layer_and_subtree);
EXPECT_EQ(src->inputs_.masks_to_bounds, dest->inputs_.masks_to_bounds);
@@ -287,6 +288,7 @@ class LayerSerializationTest : public testing::Test {
layer->offset_to_transform_parent_ = gfx::Vector2dF(3.14f, 1.618f);
layer->inputs_.double_sided = true;
layer->draws_content_ = true;
+ layer->may_contain_video_ = true;
layer->inputs_.hide_layer_and_subtree = false;
layer->inputs_.masks_to_bounds = true;
layer->inputs_.main_thread_scrolling_reasons =
@@ -331,6 +333,7 @@ class LayerSerializationTest : public testing::Test {
layer->offset_to_transform_parent_ = gfx::Vector2dF(3.14f, 1.618f);
layer->inputs_.double_sided = !layer->inputs_.double_sided;
layer->draws_content_ = !layer->draws_content_;
+ layer->may_contain_video_ = !layer->may_contain_video_;
layer->inputs_.hide_layer_and_subtree =
!layer->inputs_.hide_layer_and_subtree;
layer->inputs_.masks_to_bounds = !layer->inputs_.masks_to_bounds;
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/video_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698