| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 CONTENT_TEST_MOCK_AUDIO_STREAM_REGISTRY_H_ |
| 6 #define CONTENT_TEST_MOCK_AUDIO_STREAM_REGISTRY_H_ |
| 7 |
| 8 #include "content/browser/renderer_host/media/audio_stream_registry.h" |
| 9 #include "content/browser/renderer_host/media/audio_stream_registry_impl.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class MockAudioStreamRegistry : public AudioStreamRegistry { |
| 15 public: |
| 16 explicit MockAudioStreamRegistry(int render_process_id); |
| 17 ~MockAudioStreamRegistry() override; |
| 18 |
| 19 MOCK_METHOD1(RegisterOutputStream, void(Stream* stream)); |
| 20 MOCK_METHOD1(DeregisterOutputStream, void(Stream* stream)); |
| 21 MOCK_METHOD2(OutputStreamStateChanged, void(Stream* stream, bool playing)); |
| 22 |
| 23 private: |
| 24 AudioStreamRegistryImpl impl_; |
| 25 }; |
| 26 |
| 27 } // namespace content |
| 28 |
| 29 #endif // CONTENT_TEST_MOCK_AUDIO_STREAM_REGISTRY_H_ |
| OLD | NEW |