| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const char kInvalidKeySystem[] = "invalid.key.system"; | 36 const char kInvalidKeySystem[] = "invalid.key.system"; |
| 37 #endif | 37 #endif |
| 38 const char kSecurityOrigin[] = "http://foo.com"; | 38 const char kSecurityOrigin[] = "http://foo.com"; |
| 39 | 39 |
| 40 class MockRendererClient : public mojom::RendererClient { | 40 class MockRendererClient : public mojom::RendererClient { |
| 41 public: | 41 public: |
| 42 MockRendererClient() {} | 42 MockRendererClient() {} |
| 43 ~MockRendererClient() override {} | 43 ~MockRendererClient() override {} |
| 44 | 44 |
| 45 // mojom::RendererClient implementation. | 45 // mojom::RendererClient implementation. |
| 46 MOCK_METHOD2(OnTimeUpdate, | 46 MOCK_METHOD3(OnTimeUpdate, |
| 47 void(base::TimeDelta time, base::TimeDelta max_time)); | 47 void(base::TimeDelta time, |
| 48 base::TimeDelta max_time, |
| 49 base::TimeTicks capture_time)); |
| 48 MOCK_METHOD1(OnBufferingStateChange, void(mojom::BufferingState state)); | 50 MOCK_METHOD1(OnBufferingStateChange, void(mojom::BufferingState state)); |
| 49 MOCK_METHOD0(OnEnded, void()); | 51 MOCK_METHOD0(OnEnded, void()); |
| 50 MOCK_METHOD0(OnError, void()); | 52 MOCK_METHOD0(OnError, void()); |
| 51 MOCK_METHOD1(OnVideoOpacityChange, void(bool opaque)); | 53 MOCK_METHOD1(OnVideoOpacityChange, void(bool opaque)); |
| 52 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size& size)); | 54 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size& size)); |
| 53 MOCK_METHOD1(OnStatisticsUpdate, | 55 MOCK_METHOD1(OnStatisticsUpdate, |
| 54 void(const media::PipelineStatistics& stats)); | 56 void(const media::PipelineStatistics& stats)); |
| 55 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); | 57 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); |
| 56 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); | 58 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); |
| 57 | 59 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // close the connection. | 191 // close the connection. |
| 190 EXPECT_CALL(*this, ConnectionClosed()) | 192 EXPECT_CALL(*this, ConnectionClosed()) |
| 191 .Times(Exactly(1)) | 193 .Times(Exactly(1)) |
| 192 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); | 194 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); |
| 193 service_factory_.reset(); | 195 service_factory_.reset(); |
| 194 | 196 |
| 195 run_loop_->Run(); | 197 run_loop_->Run(); |
| 196 } | 198 } |
| 197 | 199 |
| 198 } // namespace media | 200 } // namespace media |
| OLD | NEW |