Index: cc/trees/layer_tree_host_unittest.cc |
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc |
index eb81d5b8e8a200dfb9e353a878cca21e998877a2..0450f743a5a6583a613693dc73725d7388223d1d 100644 |
--- a/cc/trees/layer_tree_host_unittest.cc |
+++ b/cc/trees/layer_tree_host_unittest.cc |
@@ -89,8 +89,8 @@ class LayerTreeHostTestSetNeedsCommit1 : public LayerTreeHostTest { |
} |
virtual void AfterTest() OVERRIDE { |
- EXPECT_GE(1, num_commits_); |
- EXPECT_GE(1, num_draws_); |
+ EXPECT_LE(1, num_commits_); |
+ EXPECT_LE(1, num_draws_); |
} |
private: |
@@ -2371,6 +2371,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithGLRenderer) { |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::CreateSingleThreaded(&client, &client, NULL, settings); |
+ host->SetLayerTreeHostClientReady(); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
EXPECT_EQ(4u, host->settings().max_partial_texture_updates); |
} |
@@ -2383,6 +2384,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithSoftwareRenderer) { |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::CreateSingleThreaded(&client, &client, NULL, settings); |
+ host->SetLayerTreeHostClientReady(); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
EXPECT_EQ(4u, host->settings().max_partial_texture_updates); |
} |
@@ -2395,6 +2397,7 @@ TEST(LayerTreeHostTest, PartialUpdatesWithDelegatingRendererAndGLContent) { |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::CreateSingleThreaded(&client, &client, NULL, settings); |
+ host->SetLayerTreeHostClientReady(); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
EXPECT_EQ(0u, host->MaxPartialTextureUpdates()); |
} |
@@ -2408,6 +2411,7 @@ TEST(LayerTreeHostTest, |
scoped_ptr<LayerTreeHost> host = |
LayerTreeHost::CreateSingleThreaded(&client, &client, NULL, settings); |
+ host->SetLayerTreeHostClientReady(); |
EXPECT_TRUE(host->InitializeOutputSurfaceIfNeeded()); |
EXPECT_EQ(0u, host->MaxPartialTextureUpdates()); |
} |