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

Unified Diff: ppapi/proxy/video_encoder_resource_unittest.cc

Issue 1069653002: ppapi: VideoEncoder: fix reported value for GetSupportedProfiles() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bbudge's nit Created 5 years, 8 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 | « ppapi/proxy/video_encoder_resource.cc ('k') | ppapi/tests/test_video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_encoder_resource_unittest.cc
diff --git a/ppapi/proxy/video_encoder_resource_unittest.cc b/ppapi/proxy/video_encoder_resource_unittest.cc
index 0adc1eabe5dcc55c8c1209a4ce476baf282f1f71..cc7ecc88af797dbc0f44684262109d1e7bbe375c 100644
--- a/ppapi/proxy/video_encoder_resource_unittest.cc
+++ b/ppapi/proxy/video_encoder_resource_unittest.cc
@@ -462,11 +462,8 @@ TEST_F(VideoEncoderResourceTest, GetSupportedProfiles) {
profiles_response.push_back(profile);
SendGetSupportedProfilesReply(params, profiles_response);
- ASSERT_EQ(PP_OK, cb.result());
-
- ASSERT_EQ(2U, profiles_response.size());
- ASSERT_EQ(0, memcmp(&profiles[0], &profiles_response[0],
- sizeof(PP_VideoProfileDescription) * 2));
+ ASSERT_EQ(profiles_response.size(), static_cast<uint32_t>(cb.result()));
+ ASSERT_EQ(0, memcmp(&profiles[0], &profiles_response[0], sizeof(profiles)));
}
}
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | ppapi/tests/test_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698