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

Unified Diff: cc/layers/layer_list_iterator_unittest.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 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/layers/layer.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_list_iterator_unittest.cc
diff --git a/cc/layers/layer_list_iterator_unittest.cc b/cc/layers/layer_list_iterator_unittest.cc
index 38cedf5c7da50467a5fbec5d5c881e2d35791737..54e1006e4f70ac613bdf0c14df9504ae48a65122 100644
--- a/cc/layers/layer_list_iterator_unittest.cc
+++ b/cc/layers/layer_list_iterator_unittest.cc
@@ -68,7 +68,7 @@ TEST(LayerListIteratorTest, VerifyTraversalOrder) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : *host->GetLayerTree()) {
+ for (auto* layer : *host) {
EXPECT_EQ(i++, layer_id_to_order[layer->id()]);
}
EXPECT_EQ(8, i);
@@ -90,7 +90,7 @@ TEST(LayerListIteratorTest, VerifySingleLayer) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : *host->GetLayerTree()) {
+ for (auto* layer : *host) {
EXPECT_EQ(i++, layer_id_to_order[layer->id()]);
}
EXPECT_EQ(2, i);
@@ -156,7 +156,7 @@ TEST(LayerListReverseIteratorTest, VerifyTraversalOrder) {
int i = 7;
- for (auto* layer : base::Reversed(*host->GetLayerTree())) {
+ for (auto* layer : base::Reversed(*host)) {
EXPECT_EQ(i--, layer_id_to_order[layer->id()]);
}
@@ -179,7 +179,7 @@ TEST(LayerListReverseIteratorTest, VerifySingleLayer) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : base::Reversed(*host->GetLayerTree())) {
+ for (auto* layer : base::Reversed(*host)) {
EXPECT_EQ(i--, layer_id_to_order[layer->id()]);
}
EXPECT_EQ(0, i);
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698