| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); | 61 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); |
| 62 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); | 62 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta duration)); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 DISALLOW_COPY_AND_ASSIGN(MockRendererClient); | 65 DISALLOW_COPY_AND_ASSIGN(MockRendererClient); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 class MediaServiceTest : public service_manager::test::ServiceTest { | 68 class MediaServiceTest : public service_manager::test::ServiceTest { |
| 69 public: | 69 public: |
| 70 MediaServiceTest() | 70 MediaServiceTest() |
| 71 : ServiceTest("media_mojo_shell_unittests"), | 71 : ServiceTest("media_service_unittests"), |
| 72 renderer_client_binding_(&renderer_client_), | 72 renderer_client_binding_(&renderer_client_), |
| 73 video_stream_(DemuxerStream::VIDEO) {} | 73 video_stream_(DemuxerStream::VIDEO) {} |
| 74 ~MediaServiceTest() override {} | 74 ~MediaServiceTest() override {} |
| 75 | 75 |
| 76 void SetUp() override { | 76 void SetUp() override { |
| 77 ServiceTest::SetUp(); | 77 ServiceTest::SetUp(); |
| 78 | 78 |
| 79 connection_ = connector()->Connect("media"); | 79 connection_ = connector()->Connect("media"); |
| 80 media::mojom::MediaServicePtr media_service; | 80 media::mojom::MediaServicePtr media_service; |
| 81 connection_->GetInterface(&media_service); | 81 connection_->GetInterface(&media_service); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // close the connection. | 212 // close the connection. |
| 213 EXPECT_CALL(*this, ConnectionClosed()) | 213 EXPECT_CALL(*this, ConnectionClosed()) |
| 214 .Times(Exactly(1)) | 214 .Times(Exactly(1)) |
| 215 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); | 215 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); |
| 216 interface_factory_.reset(); | 216 interface_factory_.reset(); |
| 217 | 217 |
| 218 run_loop_->Run(); | 218 run_loop_->Run(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace media | 221 } // namespace media |
| OLD | NEW |