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

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 11 matching lines...) Expand all
22 virtual void RunTests(const std::string& filter); 22 virtual void RunTests(const std::string& filter);
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 std::string TestAudioThreadCreator();
32 33
33 // Calls |audio_callback_method_| (where |user_data| is "this"). 34 // Calls |audio_callback_method_| (where |user_data| is "this").
34 static void AudioCallbackTrampoline(void* sample_buffer, 35 static void AudioCallbackTrampoline(void* sample_buffer,
35 uint32_t buffer_size_in_bytes, 36 uint32_t buffer_size_in_bytes,
36 PP_TimeDelta latency, 37 PP_TimeDelta latency,
37 void* user_data); 38 void* user_data);
38 static void AudioCallbackTrampoline1_0(void* sample_buffer, 39 static void AudioCallbackTrampoline1_0(void* sample_buffer,
39 uint32_t buffer_size_in_bytes, 40 uint32_t buffer_size_in_bytes,
40 void* user_data); 41 void* user_data);
41 42
(...skipping 25 matching lines...) Expand all
67 bool test_done_; 68 bool test_done_;
68 69
69 // Raw C-level interfaces, set in |Init()|; do not modify them elsewhere. 70 // Raw C-level interfaces, set in |Init()|; do not modify them elsewhere.
70 const PPB_Audio_1_1* audio_interface_; 71 const PPB_Audio_1_1* audio_interface_;
71 const PPB_Audio_1_0* audio_interface_1_0_; 72 const PPB_Audio_1_0* audio_interface_1_0_;
72 const PPB_AudioConfig* audio_config_interface_; 73 const PPB_AudioConfig* audio_config_interface_;
73 const PPB_Core* core_interface_; 74 const PPB_Core* core_interface_;
74 }; 75 };
75 76
76 #endif // PAPPI_TESTS_TEST_AUDIO_H_ 77 #endif // PAPPI_TESTS_TEST_AUDIO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698