Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |