| 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/background/background_service_manager.h" | 5 #include "services/service_manager/background/background_service_manager.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "base/values.h" | 12 #include "base/values.h" |
| 12 #include "services/service_manager/background/tests/test.mojom.h" | 13 #include "services/service_manager/background/tests/test.mojom.h" |
| 13 #include "services/service_manager/public/cpp/connector.h" | 14 #include "services/service_manager/public/cpp/connector.h" |
| 14 #include "services/service_manager/public/cpp/service.h" | 15 #include "services/service_manager/public/cpp/service.h" |
| 15 #include "services/service_manager/public/cpp/service_context.h" | 16 #include "services/service_manager/public/cpp/service_context.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 namespace service_manager { | 19 namespace service_manager { |
| 19 namespace { | 20 namespace { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Ask the service to quit itself. | 97 // Ask the service to quit itself. |
| 97 test_service->Quit(); | 98 test_service->Quit(); |
| 98 run_loop.Run(); | 99 run_loop.Run(); |
| 99 | 100 |
| 100 // The run loop was quit by the callback and not by something else. | 101 // The run loop was quit by the callback and not by something else. |
| 101 EXPECT_TRUE(callback_called); | 102 EXPECT_TRUE(callback_called); |
| 102 } | 103 } |
| 103 | 104 |
| 104 } // namespace | 105 } // namespace |
| 105 } // namespace service_manager | 106 } // namespace service_manager |
| OLD | NEW |