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

Side by Side Diff: ppapi/tests/test_audio.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/tests/test_audio.h ('k') | ppapi/tests/test_audio_config.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/tests/test_audio.h" 5 #include "ppapi/tests/test_audio.h"
6 6
7 #include <stddef.h>
7 #include <string.h> 8 #include <string.h>
8 9
10 #include "ppapi/c/ppb_audio.h"
9 #include "ppapi/c/ppb_audio_config.h" 11 #include "ppapi/c/ppb_audio_config.h"
10 #include "ppapi/c/ppb_audio.h"
11 #include "ppapi/cpp/module.h" 12 #include "ppapi/cpp/module.h"
13 #include "ppapi/tests/test_utils.h"
12 #include "ppapi/tests/testing_instance.h" 14 #include "ppapi/tests/testing_instance.h"
13 #include "ppapi/tests/test_utils.h"
14 15
15 #if defined(__native_client__) 16 #if defined(__native_client__)
16 #include "native_client/src/untrusted/irt/irt.h" 17 #include "native_client/src/untrusted/irt/irt.h"
17 #include "ppapi/native_client/src/untrusted/irt_stub/thread_creator.h" 18 #include "ppapi/native_client/src/untrusted/irt_stub/thread_creator.h"
18 #endif 19 #endif
19 20
20 #define ARRAYSIZE_UNSAFE(a) \ 21 #define ARRAYSIZE_UNSAFE(a) \
21 ((sizeof(a) / sizeof(*(a))) / \ 22 ((sizeof(a) / sizeof(*(a))) / \
22 static_cast<size_t>(!(sizeof(a) % sizeof(*(a))))) 23 static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
23 24
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } 535 }
535 536
536 PP_Resource TestAudio::CreateAudioConfig( 537 PP_Resource TestAudio::CreateAudioConfig(
537 PP_AudioSampleRate sample_rate, 538 PP_AudioSampleRate sample_rate,
538 uint32_t requested_sample_frame_count) { 539 uint32_t requested_sample_frame_count) {
539 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( 540 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount(
540 instance_->pp_instance(), sample_rate, requested_sample_frame_count); 541 instance_->pp_instance(), sample_rate, requested_sample_frame_count);
541 return audio_config_interface_->CreateStereo16Bit( 542 return audio_config_interface_->CreateStereo16Bit(
542 instance_->pp_instance(), sample_rate, frame_count); 543 instance_->pp_instance(), sample_rate, frame_count);
543 } 544 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_audio.h ('k') | ppapi/tests/test_audio_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698