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

Unified Diff: cc/layers/layer_list_iterator_unittest.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on another LTH refactor CL. Created 4 years, 4 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_proto_converter.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 457752dbc8adb2b91c3b75a27aa0d35727befb1f..57796842defb6bbdd35fc03db69f17d53c2a26fc 100644
--- a/cc/layers/layer_list_iterator_unittest.cc
+++ b/cc/layers/layer_list_iterator_unittest.cc
@@ -67,7 +67,7 @@ TEST(LayerListIteratorTest, VerifyTraversalOrder) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : *host) {
+ for (auto* layer : *host->GetLayerTree()) {
EXPECT_EQ(i++, layer_id_to_order[layer->id()]);
}
EXPECT_EQ(8, i);
@@ -88,7 +88,7 @@ TEST(LayerListIteratorTest, VerifySingleLayer) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : *host) {
+ for (auto* layer : *host->GetLayerTree()) {
EXPECT_EQ(i++, layer_id_to_order[layer->id()]);
}
EXPECT_EQ(2, i);
@@ -153,7 +153,7 @@ TEST(LayerListReverseIteratorTest, VerifyTraversalOrder) {
int i = 7;
- for (auto* layer : base::Reversed(*host)) {
+ for (auto* layer : base::Reversed(*host->GetLayerTree())) {
EXPECT_EQ(i--, layer_id_to_order[layer->id()]);
}
@@ -175,7 +175,7 @@ TEST(LayerListReverseIteratorTest, VerifySingleLayer) {
host->SetRootLayer(std::move(layer1));
int i = 1;
- for (auto* layer : base::Reversed(*host)) {
+ for (auto* layer : base::Reversed(*host->GetLayerTree())) {
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_proto_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698