| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return 0; | 69 return 0; |
| 70 } | 70 } |
| 71 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} | 71 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} |
| 72 void addTextTrack(blink::WebInbandTextTrack*) override {} | 72 void addTextTrack(blink::WebInbandTextTrack*) override {} |
| 73 void removeTextTrack(blink::WebInbandTextTrack*) override {} | 73 void removeTextTrack(blink::WebInbandTextTrack*) override {} |
| 74 void mediaSourceOpened(blink::WebMediaSource*) override {} | 74 void mediaSourceOpened(blink::WebMediaSource*) override {} |
| 75 void requestSeek(double) override {} | 75 void requestSeek(double) override {} |
| 76 void remoteRouteAvailabilityChanged(bool) override {} | 76 void remoteRouteAvailabilityChanged(bool) override {} |
| 77 void connectedToRemoteDevice() override {} | 77 void connectedToRemoteDevice() override {} |
| 78 void disconnectedFromRemoteDevice() override {} | 78 void disconnectedFromRemoteDevice() override {} |
| 79 void cancelledRemotePlaybackRequest() override {} |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); | 82 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 class WebMediaPlayerImplTest : public testing::Test { | 85 class WebMediaPlayerImplTest : public testing::Test { |
| 85 public: | 86 public: |
| 86 WebMediaPlayerImplTest() | 87 WebMediaPlayerImplTest() |
| 87 : media_thread_("MediaThreadForTest"), | 88 : media_thread_("MediaThreadForTest"), |
| 88 web_view_(blink::WebView::create(nullptr)), | 89 web_view_(blink::WebView::create(nullptr)), |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // The WebMediaPlayerImpl instance under test. | 151 // The WebMediaPlayerImpl instance under test. |
| 151 scoped_ptr<WebMediaPlayerImpl> wmpi_; | 152 scoped_ptr<WebMediaPlayerImpl> wmpi_; |
| 152 | 153 |
| 153 private: | 154 private: |
| 154 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplTest); | 155 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplTest); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 TEST_F(WebMediaPlayerImplTest, ConstructAndDestroy) {} | 158 TEST_F(WebMediaPlayerImplTest, ConstructAndDestroy) {} |
| 158 | 159 |
| 159 } // namespace media | 160 } // namespace media |
| OLD | NEW |