1 // Copyright 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 #include "ash/test_media_client.h" 6 7 namespace ash { 8 9 TestMediaClient::TestMediaClient() = default; 10 TestMediaClient::~TestMediaClient() = default; 11 HandleMediaNextTrack()12void TestMediaClient::HandleMediaNextTrack() { 13 ++handle_media_next_track_count_; 14 } 15 HandleMediaPlayPause()16void TestMediaClient::HandleMediaPlayPause() { 17 ++handle_media_play_pause_count_; 18 } 19 HandleMediaPlay()20void TestMediaClient::HandleMediaPlay() { 21 ++handle_media_play_count_; 22 } 23 HandleMediaPause()24void TestMediaClient::HandleMediaPause() { 25 ++handle_media_pause_count_; 26 } 27 HandleMediaStop()28void TestMediaClient::HandleMediaStop() { 29 ++handle_media_stop_count_; 30 } 31 HandleMediaPrevTrack()32void TestMediaClient::HandleMediaPrevTrack() { 33 ++handle_media_prev_track_count_; 34 } 35 HandleMediaSeekBackward()36void TestMediaClient::HandleMediaSeekBackward() { 37 ++handle_media_seek_backward_count_; 38 } 39 HandleMediaSeekForward()40void TestMediaClient::HandleMediaSeekForward() { 41 ++handle_media_seek_forward_count_; 42 } 43 RequestCaptureState()44void TestMediaClient::RequestCaptureState() {} 45 SuspendMediaSessions()46void TestMediaClient::SuspendMediaSessions() { 47 media_sessions_suspended_ = true; 48 } 49 50 } // namespace ash 51