| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/mojo/keep_alive_impl.h" | 5 #include "extensions/browser/mojo/keep_alive_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
| 12 #include "extensions/browser/extension_registry.h" | 13 #include "extensions/browser/extension_registry.h" |
| 13 #include "extensions/browser/extensions_test.h" | 14 #include "extensions/browser/extensions_test.h" |
| 14 #include "extensions/browser/process_manager.h" | 15 #include "extensions/browser/process_manager.h" |
| 15 #include "extensions/common/extension_builder.h" | 16 #include "extensions/common/extension_builder.h" |
| 16 | 17 |
| 17 namespace extensions { | 18 namespace extensions { |
| 18 | 19 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // ProcessManager and so the keep-alive count should remain unchanged. | 151 // ProcessManager and so the keep-alive count should remain unchanged. |
| 151 EXPECT_EQ(1, GetKeepAliveCount()); | 152 EXPECT_EQ(1, GetKeepAliveCount()); |
| 152 | 153 |
| 153 // Wait for |keep_alive| to disconnect. | 154 // Wait for |keep_alive| to disconnect. |
| 154 base::RunLoop run_loop; | 155 base::RunLoop run_loop; |
| 155 keep_alive.set_connection_error_handler(run_loop.QuitClosure()); | 156 keep_alive.set_connection_error_handler(run_loop.QuitClosure()); |
| 156 run_loop.Run(); | 157 run_loop.Run(); |
| 157 } | 158 } |
| 158 | 159 |
| 159 } // namespace extensions | 160 } // namespace extensions |
| OLD | NEW |