| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 #include "ppapi/c/ppb_audio_config.h" |
| 12 #include "ppapi/c/ppb_core.h" |
| 10 #include "ppapi/tests/test_case.h" | 13 #include "ppapi/tests/test_case.h" |
| 11 | 14 |
| 12 struct PPB_Audio; | |
| 13 struct PPB_AudioConfig; | |
| 14 struct PPB_Core; | |
| 15 | |
| 16 class TestAudio : public TestCase { | 15 class TestAudio : public TestCase { |
| 17 public: | 16 public: |
| 18 explicit TestAudio(TestingInstance* instance) : TestCase(instance) {} | 17 explicit TestAudio(TestingInstance* instance) : TestCase(instance) {} |
| 19 | 18 |
| 20 // TestCase implementation. | 19 // TestCase implementation. |
| 21 virtual bool Init(); | 20 virtual bool Init(); |
| 22 virtual void RunTests(const std::string& filter); | 21 virtual void RunTests(const std::string& filter); |
| 23 | 22 |
| 24 private: | 23 private: |
| 25 std::string TestCreation(); | 24 std::string TestCreation(); |
| 26 std::string TestDestroyNoStop(); | 25 std::string TestDestroyNoStop(); |
| 27 std::string TestFailures(); | 26 std::string TestFailures(); |
| 28 | 27 |
| 29 const PPB_Audio* audio_interface_; | 28 const PPB_Audio* audio_interface_; |
| 30 const PPB_AudioConfig* audio_config_interface_; | 29 const PPB_AudioConfig* audio_config_interface_; |
| 31 const PPB_Core* core_interface_; | 30 const PPB_Core* core_interface_; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 #endif // PAPPI_TESTS_TEST_AUDIO_H_ | 33 #endif // PAPPI_TESTS_TEST_AUDIO_H_ |
| OLD | NEW |