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

Side by Side Diff: content/test/mock_audio_stream_registry.h

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Add missing EXPECT_TRUE. Created 4 years 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698