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

Side by Side Diff: content/public/test/mock_media_session.h

Issue 2623953002: [Chromecast] Fix media session blocking tests. (Closed)
Patch Set: Removed stale TODO Created 3 years, 11 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
(Empty)
1 // Copyright (c) 2017 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_PUBLIC_TEST_MOCK_MEDIA_SESSION_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_MEDIA_SESSION_H_
7
8 #include "content/public/browser/media_session.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace content {
12
13 class MockMediaSession : public MediaSession {
Zhiqiang Zhang (Slow) 2017/01/20 16:27:56 I think the major change is to make content::Media
derekjchow1 2017/01/23 21:04:32 SGTM. Done.
14 public:
15 MockMediaSession();
16 ~MockMediaSession() override;
17
18 MOCK_METHOD1(Resume, void(content::MediaSession::SuspendType));
19 MOCK_METHOD1(Suspend, void(content::MediaSession::SuspendType));
20 MOCK_METHOD1(Stop, void(content::MediaSession::SuspendType));
21 MOCK_METHOD0(StartDucking, void());
22 MOCK_METHOD0(StopDucking, void());
23 MOCK_METHOD1(DidReceiveAction, void(blink::mojom::MediaSessionAction));
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockMediaSession);
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_PUBLIC_TEST_MOCK_MEDIA_SESSION_H_
OLDNEW
« no previous file with comments | « content/public/browser/media_session_observer.cc ('k') | content/public/test/mock_media_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698