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 30 matching lines...) Expand all Loading... |
41 class MockRendererClient : public mojom::RendererClient { | 41 class MockRendererClient : public mojom::RendererClient { |
42 public: | 42 public: |
43 MockRendererClient() {} | 43 MockRendererClient() {} |
44 ~MockRendererClient() override {} | 44 ~MockRendererClient() override {} |
45 | 45 |
46 // mojom::RendererClient implementation. | 46 // mojom::RendererClient implementation. |
47 MOCK_METHOD3(OnTimeUpdate, | 47 MOCK_METHOD3(OnTimeUpdate, |
48 void(base::TimeDelta time, | 48 void(base::TimeDelta time, |
49 base::TimeDelta max_time, | 49 base::TimeDelta max_time, |
50 base::TimeTicks capture_time)); | 50 base::TimeTicks capture_time)); |
51 MOCK_METHOD1(OnBufferingStateChange, void(mojom::BufferingState state)); | 51 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState state)); |
52 MOCK_METHOD0(OnEnded, void()); | 52 MOCK_METHOD0(OnEnded, void()); |
53 MOCK_METHOD0(OnError, void()); | 53 MOCK_METHOD0(OnError, void()); |
54 MOCK_METHOD1(OnVideoOpacityChange, void(bool opaque)); | 54 MOCK_METHOD1(OnVideoOpacityChange, void(bool opaque)); |
55 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size& size)); | 55 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size& size)); |
56 MOCK_METHOD1(OnStatisticsUpdate, | 56 MOCK_METHOD1(OnStatisticsUpdate, |
57 void(const media::PipelineStatistics& stats)); | 57 void(const media::PipelineStatistics& stats)); |
58 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); | 58 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); |
59 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); | 59 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); |
60 | 60 |
61 private: | 61 private: |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // close the connection. | 196 // close the connection. |
197 EXPECT_CALL(*this, ConnectionClosed()) | 197 EXPECT_CALL(*this, ConnectionClosed()) |
198 .Times(Exactly(1)) | 198 .Times(Exactly(1)) |
199 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); | 199 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); |
200 service_factory_.reset(); | 200 service_factory_.reset(); |
201 | 201 |
202 run_loop_->Run(); | 202 run_loop_->Run(); |
203 } | 203 } |
204 | 204 |
205 } // namespace media | 205 } // namespace media |
OLD | NEW |