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

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

Issue 2551963002: media: Rename media_mojo_shell_unittests to media_service_unittests (Closed)
Patch Set: Created 4 years 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/services/media_mojo_unittest.cc ('k') | media/mojo/services/test_manifest.json » ('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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « media/mojo/services/media_mojo_unittest.cc ('k') | media/mojo/services/test_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698