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

Side by Side Diff: content/shell/test_runner/mock_web_media_stream_center.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 9 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
10 10
11 namespace blink { 11 namespace blink {
12 class WebAudioSourceProvider; 12 class WebAudioSourceProvider;
13 }; 13 };
14 14
15 namespace test_runner { 15 namespace test_runner {
16 16
17 class MockWebMediaStreamCenter : public blink::WebMediaStreamCenter { 17 class MockWebMediaStreamCenter : public blink::WebMediaStreamCenter {
18 public: 18 public:
19 MockWebMediaStreamCenter() = default; 19 MockWebMediaStreamCenter() = default;
20 ~MockWebMediaStreamCenter() override {}; 20 ~MockWebMediaStreamCenter() override{};
21 21
22 void didEnableMediaStreamTrack( 22 void didEnableMediaStreamTrack(
23 const blink::WebMediaStreamTrack& track) override; 23 const blink::WebMediaStreamTrack& track) override;
24 void didDisableMediaStreamTrack( 24 void didDisableMediaStreamTrack(
25 const blink::WebMediaStreamTrack& track) override; 25 const blink::WebMediaStreamTrack& track) override;
26 bool didAddMediaStreamTrack(const blink::WebMediaStream& stream, 26 bool didAddMediaStreamTrack(const blink::WebMediaStream& stream,
27 const blink::WebMediaStreamTrack& track) override; 27 const blink::WebMediaStreamTrack& track) override;
28 bool didRemoveMediaStreamTrack( 28 bool didRemoveMediaStreamTrack(
29 const blink::WebMediaStream& stream, 29 const blink::WebMediaStream& stream,
30 const blink::WebMediaStreamTrack& track) override; 30 const blink::WebMediaStreamTrack& track) override;
31 void didStopLocalMediaStream(const blink::WebMediaStream& stream) override; 31 void didStopLocalMediaStream(const blink::WebMediaStream& stream) override;
32 bool didStopMediaStreamTrack( 32 bool didStopMediaStreamTrack(
33 const blink::WebMediaStreamTrack& track) override; 33 const blink::WebMediaStreamTrack& track) override;
34 void didCreateMediaStream(blink::WebMediaStream& stream) override; 34 void didCreateMediaStream(blink::WebMediaStream& stream) override;
35 blink::WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack( 35 blink::WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack(
36 const blink::WebMediaStreamTrack& track) override; 36 const blink::WebMediaStreamTrack& track) override;
37 37
38 private: 38 private:
39 DISALLOW_COPY_AND_ASSIGN(MockWebMediaStreamCenter); 39 DISALLOW_COPY_AND_ASSIGN(MockWebMediaStreamCenter);
40 }; 40 };
41 41
42 } // namespace test_runner 42 } // namespace test_runner
43 43
44 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ 44 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698