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

Side by Side Diff: ppapi/proxy/video_encoder_resource_unittest.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years 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 unified diff | Download patch
« no previous file with comments | « ppapi/proxy/video_encoder_resource.h ('k') | ppapi/proxy/video_frame_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/proxy/video_encoder_resource.h" 5 #include "ppapi/proxy/video_encoder_resource.h"
6 6
7 #include <stdint.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
10 #include "base/process/process.h" 12 #include "base/process/process.h"
11 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
12 #include "ppapi/c/pp_codecs.h" 14 #include "ppapi/c/pp_codecs.h"
13 #include "ppapi/c/pp_errors.h" 15 #include "ppapi/c/pp_errors.h"
14 #include "ppapi/c/ppb_video_encoder.h" 16 #include "ppapi/c/ppb_video_encoder.h"
15 #include "ppapi/c/ppb_video_frame.h" 17 #include "ppapi/c/ppb_video_frame.h"
16 #include "ppapi/proxy/locking_resource_releaser.h" 18 #include "ppapi/proxy/locking_resource_releaser.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 profile.max_resolution.height = 1080; 506 profile.max_resolution.height = 1080;
505 profile.max_framerate_numerator = 30; 507 profile.max_framerate_numerator = 30;
506 profile.max_framerate_denominator = 1; 508 profile.max_framerate_denominator = 1;
507 profile.hardware_accelerated = PP_FALSE; 509 profile.hardware_accelerated = PP_FALSE;
508 profiles_response.push_back(profile); 510 profiles_response.push_back(profile);
509 511
510 SendGetSupportedProfilesReply(params, profiles_response); 512 SendGetSupportedProfilesReply(params, profiles_response);
511 513
512 ASSERT_EQ(profiles_response.size(), static_cast<uint32_t>(cb.result())); 514 ASSERT_EQ(profiles_response.size(), static_cast<uint32_t>(cb.result()));
513 515
514 for (uint32 i = 0; i < profiles_response.size(); i++) { 516 for (uint32_t i = 0; i < profiles_response.size(); i++) {
515 ASSERT_EQ(profiles_response[i].profile, profiles[i].profile); 517 ASSERT_EQ(profiles_response[i].profile, profiles[i].profile);
516 ASSERT_EQ(profiles_response[i].max_resolution.width, 518 ASSERT_EQ(profiles_response[i].max_resolution.width,
517 profiles[i].max_resolution.width); 519 profiles[i].max_resolution.width);
518 ASSERT_EQ(profiles_response[i].max_resolution.height, 520 ASSERT_EQ(profiles_response[i].max_resolution.height,
519 profiles[i].max_resolution.height); 521 profiles[i].max_resolution.height);
520 ASSERT_EQ(profiles_response[i].max_framerate_numerator, 522 ASSERT_EQ(profiles_response[i].max_framerate_numerator,
521 profiles[i].max_framerate_numerator); 523 profiles[i].max_framerate_numerator);
522 ASSERT_EQ(profiles_response[i].max_framerate_denominator, 524 ASSERT_EQ(profiles_response[i].max_framerate_denominator,
523 profiles[i].max_framerate_denominator); 525 profiles[i].max_framerate_denominator);
524 if (profiles_response[i].hardware_accelerated) 526 if (profiles_response[i].hardware_accelerated)
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 ResourceMessageCallParams params; 1145 ResourceMessageCallParams params;
1144 uint32_t frame_id; 1146 uint32_t frame_id;
1145 bool force_frame; 1147 bool force_frame;
1146 ASSERT_TRUE(CheckEncodeMsg(&params, &frame_id, &force_frame)); 1148 ASSERT_TRUE(CheckEncodeMsg(&params, &frame_id, &force_frame));
1147 SendEncodeReply(params, frame_id); 1149 SendEncodeReply(params, frame_id);
1148 } 1150 }
1149 } 1151 }
1150 1152
1151 } // namespace proxy 1153 } // namespace proxy
1152 } // namespace ppapi 1154 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/video_encoder_resource.h ('k') | ppapi/proxy/video_frame_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698