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

Unified Diff: cc/ipc/cc_param_traits_unittest.cc

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « cc/ipc/cc_param_traits_macros.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_param_traits_unittest.cc
diff --git a/cc/ipc/cc_param_traits_unittest.cc b/cc/ipc/cc_param_traits_unittest.cc
index 8886a1426cbc0ea8adf2af677d6fa3f51c08a6ef..7214cf4877e38e12999a7d5a15d15ac39281f63f 100644
--- a/cc/ipc/cc_param_traits_unittest.cc
+++ b/cc/ipc/cc_param_traits_unittest.cc
@@ -180,6 +180,7 @@ class CCParamTraitsTest : public testing::Test {
EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]);
EXPECT_EQ(a->y_flipped, b->y_flipped);
EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor);
+ EXPECT_EQ(a->secure_output_only, b->secure_output_only);
}
void Compare(const TileDrawQuad* a, const TileDrawQuad* b) {
@@ -256,6 +257,7 @@ TEST_F(CCParamTraitsTest, AllQuads) {
bool arbitrary_bool3 = true;
bool arbitrary_bool4 = true;
bool arbitrary_bool5 = false;
+ bool arbitrary_bool6 = true;
int arbitrary_context_id1 = 12;
int arbitrary_context_id2 = 57;
int arbitrary_context_id3 = -503;
@@ -386,11 +388,12 @@ TEST_F(CCParamTraitsTest, AllQuads) {
TextureDrawQuad* texture_in =
pass_in->CreateAndAppendDrawQuad<TextureDrawQuad>();
- texture_in->SetAll(
- shared_state3_in, arbitrary_rect2, arbitrary_rect2_inside_rect2,
- arbitrary_rect1_inside_rect2, arbitrary_bool1, arbitrary_resourceid1,
- arbitrary_size1, arbitrary_bool2, arbitrary_pointf1, arbitrary_pointf2,
- arbitrary_color, arbitrary_float_array, arbitrary_bool4, arbitrary_bool5);
+ texture_in->SetAll(shared_state3_in, arbitrary_rect2,
+ arbitrary_rect2_inside_rect2, arbitrary_rect1_inside_rect2,
+ arbitrary_bool1, arbitrary_resourceid1, arbitrary_size1,
+ arbitrary_bool2, arbitrary_pointf1, arbitrary_pointf2,
+ arbitrary_color, arbitrary_float_array, arbitrary_bool4,
+ arbitrary_bool5, arbitrary_bool6);
pass_cmp->CopyFromAndAppendDrawQuad(texture_in,
texture_in->shared_quad_state);
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698