Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ppapi / tests / test_media_stream_audio_track.h
blob1dcb3f33ed94aba3e8e1802433904a102e0527d8
1 // Copyright 2014 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.
5 #ifndef PPAPI_TESTS_TEST_MEDIA_STREAM_AUDIO_TRACK_H_
6 #define PPAPI_TESTS_TEST_MEDIA_STREAM_AUDIO_TRACK_H_
8 #include <string>
10 #include "ppapi/cpp/media_stream_audio_track.h"
11 #include "ppapi/cpp/video_frame.h"
12 #include "ppapi/tests/test_case.h"
14 class TestMediaStreamAudioTrack : public TestCase {
15 public:
16 explicit TestMediaStreamAudioTrack(TestingInstance* instance);
17 virtual ~TestMediaStreamAudioTrack();
19 private:
20 // TestCase implementation.
21 virtual bool Init();
22 virtual void RunTests(const std::string& filter);
24 // Overrides.
25 virtual void HandleMessage(const pp::Var& message_data);
27 // Test helpers.
28 std::string CheckConfigure(int32_t attrib_list[], int32_t expected_result);
29 std::string CheckGetBuffer(int times, int expected_duration);
31 std::string TestCreate();
32 std::string TestGetBuffer();
33 std::string TestConfigure();
34 std::string TestConfigureClose();
35 std::string TestVerifyWaveform();
37 pp::MediaStreamAudioTrack audio_track_;
39 NestedEvent event_;
42 #endif // PPAPI_TESTS_TEST_MEDIA_STREAM_AUDIO_TRACK_H_