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

Side by Side Diff: ppapi/tests/test_audio_config.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 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « ppapi/tests/test_audio.cc ('k') | ppapi/tests/test_broker.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_config.h" 5 #include "ppapi/tests/test_audio_config.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "ppapi/c/ppb_audio_config.h" 10 #include "ppapi/c/ppb_audio_config.h"
8 #include "ppapi/cpp/module.h" 11 #include "ppapi/cpp/module.h"
9 #include "ppapi/tests/testing_instance.h" 12 #include "ppapi/tests/testing_instance.h"
10 13
11 REGISTER_TEST_CASE(AudioConfig); 14 REGISTER_TEST_CASE(AudioConfig);
12 15
13 bool TestAudioConfig::Init() { 16 bool TestAudioConfig::Init() {
14 audio_config_interface_ = static_cast<const PPB_AudioConfig*>( 17 audio_config_interface_ = static_cast<const PPB_AudioConfig*>(
15 pp::Module::Get()->GetBrowserInterface(PPB_AUDIO_CONFIG_INTERFACE)); 18 pp::Module::Get()->GetBrowserInterface(PPB_AUDIO_CONFIG_INTERFACE));
16 core_interface_ = static_cast<const PPB_Core*>( 19 core_interface_ = static_cast<const PPB_Core*>(
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 PP_AUDIOMAXSAMPLEFRAMECOUNT + 1u); 102 PP_AUDIOMAXSAMPLEFRAMECOUNT + 1u);
100 ASSERT_EQ(0, ac); 103 ASSERT_EQ(0, ac);
101 104
102 // Test rest of API whose failure cases are defined. 105 // Test rest of API whose failure cases are defined.
103 ASSERT_FALSE(audio_config_interface_->IsAudioConfig(0)); 106 ASSERT_FALSE(audio_config_interface_->IsAudioConfig(0));
104 ASSERT_EQ(PP_AUDIOSAMPLERATE_NONE, audio_config_interface_->GetSampleRate(0)); 107 ASSERT_EQ(PP_AUDIOSAMPLERATE_NONE, audio_config_interface_->GetSampleRate(0));
105 ASSERT_EQ(0u, audio_config_interface_->GetSampleFrameCount(0)); 108 ASSERT_EQ(0u, audio_config_interface_->GetSampleFrameCount(0));
106 109
107 PASS(); 110 PASS();
108 } 111 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_audio.cc ('k') | ppapi/tests/test_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698