Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: media/mojo/services/media_mojo_unittest.cc

Issue 2386443002: media: Use native BufferingState in media mojo interfaces (Closed)
Patch Set: media: Use native media enums in media mojo interfaces Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/interfaces/media_types.typemap ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/mojo/interfaces/media_types.typemap ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698