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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "device/serial/serial_device_enumerator.h" | 12 #include "device/serial/serial_device_enumerator.h" |
13 #include "device/serial/serial_service_impl.h" | 13 #include "device/serial/serial_service_impl.h" |
14 #include "device/serial/test_serial_io_handler.h" | 14 #include "device/serial/test_serial_io_handler.h" |
15 #include "extensions/browser/mojo/stash_backend.h" | 15 #include "extensions/browser/mojo/stash_backend.h" |
16 #include "extensions/common/mojo/keep_alive.mojom.h" | 16 #include "extensions/common/mojo/keep_alive.mojom.h" |
17 #include "extensions/renderer/api_test_base.h" | 17 #include "extensions/renderer/api_test_base.h" |
18 #include "grit/extensions_renderer_resources.h" | 18 #include "grit/extensions_renderer_resources.h" |
19 | 19 |
20 // A test launcher for tests for the serial API defined in | 20 // A test launcher for tests for the serial API defined in |
21 // extensions/test/data/serial_unittest.js. Each C++ test function sets up a | 21 // extensions/test/data/serial_unittest.js. Each C++ test function sets up a |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 ASSERT_NO_FATAL_FAILURE( | 729 ASSERT_NO_FATAL_FAILURE( |
730 RunTest("serial_unittest.js", "testStashNoConnections")); | 730 RunTest("serial_unittest.js", "testStashNoConnections")); |
731 io_handler_ = nullptr; | 731 io_handler_ = nullptr; |
732 std::unique_ptr<ModuleSystemTestEnvironment> new_env(CreateEnvironment()); | 732 std::unique_ptr<ModuleSystemTestEnvironment> new_env(CreateEnvironment()); |
733 ApiTestEnvironment new_api_test_env(new_env.get()); | 733 ApiTestEnvironment new_api_test_env(new_env.get()); |
734 PrepareEnvironment(&new_api_test_env, stash_backend_.get()); | 734 PrepareEnvironment(&new_api_test_env, stash_backend_.get()); |
735 new_api_test_env.RunTest("serial_unittest.js", "testRestoreNoConnections"); | 735 new_api_test_env.RunTest("serial_unittest.js", "testRestoreNoConnections"); |
736 } | 736 } |
737 | 737 |
738 } // namespace extensions | 738 } // namespace extensions |
OLD | NEW |