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