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

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

Issue 1348563003: ppapi: implement PPB_AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_TESTS_TEST_AUDIO_ENCODER_H_
6 #define PPAPI_TESTS_TEST_AUDIO_ENCODER_H_
7
8 #include <string>
9
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/ppb_audio_encoder.h"
12 #include "ppapi/tests/test_case.h"
13
14 class TestAudioEncoder : public TestCase {
15 public:
16 explicit TestAudioEncoder(TestingInstance* instance) : TestCase(instance) {}
17
18 private:
19 // TestCase implementation.
20 virtual bool Init();
21 virtual void RunTests(const std::string& filter);
22
23 std::string TestAvailableCodecs();
24 std::string TestIncorrectParametersFails();
25 std::string TestInitializeTwiceFails();
26 std::string TestInitializeOpusMono();
27 std::string TestInitializeOpusStereo();
28
29 std::string TestInitializeCodec(uint32_t channels,
30 PP_AudioBuffer_SampleRate input_sample_rate,
31 PP_AudioBuffer_SampleSize input_sample_size,
32 PP_AudioProfile output_profile);
33
34 // Used by the tests that access the C API directly.
35 const PPB_AudioEncoder_0_1* audio_encoder_interface_;
36 };
37
38 #endif // PPAPI_TESTS_TEST_AUDIO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698