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

Unified Diff: mojo/converters/surfaces/tests/surface_unittest.cc

Issue 1132233003: Fixes mojo_surfaces_lib_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/surfaces/tests/surface_unittest.cc
diff --git a/mojo/converters/surfaces/tests/surface_unittest.cc b/mojo/converters/surfaces/tests/surface_unittest.cc
index 465bee3d3e8c98ea2808aea9fefb4c944598f117..7e6d680d5fd3fb85eb9147d8919c493af10da420 100644
--- a/mojo/converters/surfaces/tests/surface_unittest.cc
+++ b/mojo/converters/surfaces/tests/surface_unittest.cc
@@ -148,6 +148,9 @@ TEST_F(SurfaceLibQuadTest, TextureQuadEmptyVertexOpacity) {
mojo_texture_state->background_color = Color::New();
mojo_texture_quad->texture_quad_state = mojo_texture_state.Pass();
PassPtr mojo_pass = Pass::New();
+ mojo_pass->id = RenderPassId::New();
+ mojo_pass->id->layer_id = 1;
+ mojo_pass->id->index = 1;
mojo_pass->quads.push_back(mojo_texture_quad.Pass());
SharedQuadStatePtr mojo_sqs = SharedQuadState::New();
mojo_pass->shared_quad_states.push_back(mojo_sqs.Pass());
@@ -164,6 +167,9 @@ TEST_F(SurfaceLibQuadTest, TextureQuadEmptyBackgroundColor) {
mojo_texture_state->vertex_opacity = mojo::Array<float>::New(4);
mojo_texture_quad->texture_quad_state = mojo_texture_state.Pass();
PassPtr mojo_pass = Pass::New();
+ mojo_pass->id = RenderPassId::New();
+ mojo_pass->id->layer_id = 1;
+ mojo_pass->id->index = 1;
mojo_pass->quads.push_back(mojo_texture_quad.Pass());
SharedQuadStatePtr mojo_sqs = SharedQuadState::New();
mojo_pass->shared_quad_states.push_back(mojo_sqs.Pass());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698