| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "extensions/common/mojo/keep_alive.mojom.h" | 8 #include "extensions/common/mojo/keep_alive.mojom.h" |
| 8 #include "extensions/renderer/api_test_base.h" | 9 #include "extensions/renderer/api_test_base.h" |
| 9 #include "grit/extensions_renderer_resources.h" | 10 #include "grit/extensions_renderer_resources.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 11 | 12 |
| 12 // A test launcher for tests for the stash client defined in | 13 // A test launcher for tests for the stash client defined in |
| 13 // extensions/test/data/keep_alive_client_unittest.js. | 14 // extensions/test/data/keep_alive_client_unittest.js. |
| 14 | 15 |
| 15 namespace extensions { | 16 namespace extensions { |
| 16 namespace { | 17 namespace { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 RunTest("keep_alive_client_unittest.js", "testKeepAliveWithSuccessfulCall"); | 91 RunTest("keep_alive_client_unittest.js", "testKeepAliveWithSuccessfulCall"); |
| 91 WaitForKeepAlive(); | 92 WaitForKeepAlive(); |
| 92 } | 93 } |
| 93 | 94 |
| 94 TEST_F(KeepAliveClientTest, KeepAliveWithError) { | 95 TEST_F(KeepAliveClientTest, KeepAliveWithError) { |
| 95 RunTest("keep_alive_client_unittest.js", "testKeepAliveWithError"); | 96 RunTest("keep_alive_client_unittest.js", "testKeepAliveWithError"); |
| 96 WaitForKeepAlive(); | 97 WaitForKeepAlive(); |
| 97 } | 98 } |
| 98 | 99 |
| 99 } // namespace extensions | 100 } // namespace extensions |
| OLD | NEW |