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

Side by Side Diff: ppapi/tests/test_audio.h

Issue 240523002: Add test to make sure if PPB_Audio_Shared::StartThread() works. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef PAPPI_TESTS_TEST_AUDIO_H_ 5 #ifndef PAPPI_TESTS_TEST_AUDIO_H_
6 #define PAPPI_TESTS_TEST_AUDIO_H_ 6 #define PAPPI_TESTS_TEST_AUDIO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/ppb_audio.h" 10 #include "ppapi/c/ppb_audio.h"
(...skipping 12 matching lines...) Expand all
23 23
24 private: 24 private:
25 std::string TestCreation(); 25 std::string TestCreation();
26 std::string TestDestroyNoStop(); 26 std::string TestDestroyNoStop();
27 std::string TestFailures(); 27 std::string TestFailures();
28 std::string TestAudioCallback1(); 28 std::string TestAudioCallback1();
29 std::string TestAudioCallback2(); 29 std::string TestAudioCallback2();
30 std::string TestAudioCallback3(); 30 std::string TestAudioCallback3();
31 std::string TestAudioCallback4(); 31 std::string TestAudioCallback4();
32 32
33 #if defined(__native_client__)
34 std::string TestAudioThreadCreator();
35 #endif
36
33 // Calls |audio_callback_method_| (where |user_data| is "this"). 37 // Calls |audio_callback_method_| (where |user_data| is "this").
34 static void AudioCallbackTrampoline(void* sample_buffer, 38 static void AudioCallbackTrampoline(void* sample_buffer,
35 uint32_t buffer_size_in_bytes, 39 uint32_t buffer_size_in_bytes,
36 PP_TimeDelta latency, 40 PP_TimeDelta latency,
37 void* user_data); 41 void* user_data);
38 static void AudioCallbackTrampoline1_0(void* sample_buffer, 42 static void AudioCallbackTrampoline1_0(void* sample_buffer,
39 uint32_t buffer_size_in_bytes, 43 uint32_t buffer_size_in_bytes,
40 void* user_data); 44 void* user_data);
41 45
42 typedef void (TestAudio::*AudioCallbackMethod)(void* sample_buffer, 46 typedef void (TestAudio::*AudioCallbackMethod)(void* sample_buffer,
(...skipping 24 matching lines...) Expand all
67 bool test_done_; 71 bool test_done_;
68 72
69 // Raw C-level interfaces, set in |Init()|; do not modify them elsewhere. 73 // Raw C-level interfaces, set in |Init()|; do not modify them elsewhere.
70 const PPB_Audio_1_1* audio_interface_; 74 const PPB_Audio_1_1* audio_interface_;
71 const PPB_Audio_1_0* audio_interface_1_0_; 75 const PPB_Audio_1_0* audio_interface_1_0_;
72 const PPB_AudioConfig* audio_config_interface_; 76 const PPB_AudioConfig* audio_config_interface_;
73 const PPB_Core* core_interface_; 77 const PPB_Core* core_interface_;
74 }; 78 };
75 79
76 #endif // PAPPI_TESTS_TEST_AUDIO_H_ 80 #endif // PAPPI_TESTS_TEST_AUDIO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698