OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/service_manager/public/cpp/service_test.h" | 5 #include "services/service_manager/public/cpp/service_test.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 ServiceTestClient::ServiceTestClient(ServiceTest* test) : test_(test) {} | 21 ServiceTestClient::ServiceTestClient(ServiceTest* test) : test_(test) {} |
22 | 22 |
23 ServiceTestClient::~ServiceTestClient() {} | 23 ServiceTestClient::~ServiceTestClient() {} |
24 | 24 |
25 void ServiceTestClient::OnStart() { | 25 void ServiceTestClient::OnStart() { |
26 test_->OnStartCalled(context()->connector(), context()->identity().name(), | 26 test_->OnStartCalled(context()->connector(), context()->identity().name(), |
27 context()->identity().user_id()); | 27 context()->identity().user_id()); |
28 } | 28 } |
29 | 29 |
30 void ServiceTestClient::OnBindInterface( | 30 void ServiceTestClient::OnBindInterface( |
31 const ServiceInfo& source_info, | 31 const BindSourceInfo& source_info, |
32 const std::string& interface_name, | 32 const std::string& interface_name, |
33 mojo::ScopedMessagePipeHandle interface_pipe) {} | 33 mojo::ScopedMessagePipeHandle interface_pipe) {} |
34 | 34 |
35 ServiceTest::ServiceTest() {} | 35 ServiceTest::ServiceTest() {} |
36 | 36 |
37 ServiceTest::ServiceTest(const std::string& test_name, bool init_edk) | 37 ServiceTest::ServiceTest(const std::string& test_name, bool init_edk) |
38 : test_name_(test_name), init_edk_(init_edk) {} | 38 : test_name_(test_name), init_edk_(init_edk) {} |
39 | 39 |
40 ServiceTest::~ServiceTest() {} | 40 ServiceTest::~ServiceTest() {} |
41 | 41 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 void ServiceTest::TearDown() { | 89 void ServiceTest::TearDown() { |
90 background_service_manager_.reset(); | 90 background_service_manager_.reset(); |
91 context_.reset(); | 91 context_.reset(); |
92 message_loop_.reset(); | 92 message_loop_.reset(); |
93 } | 93 } |
94 | 94 |
95 } // namespace test | 95 } // namespace test |
96 } // namespace service_manager | 96 } // namespace service_manager |
OLD | NEW |