| 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> |
| 6 #include <stdint.h> |
| 7 |
| 5 #include <utility> | 8 #include <utility> |
| 6 | 9 |
| 10 #include "base/macros.h" |
| 7 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 8 #include "device/serial/serial_device_enumerator.h" | 12 #include "device/serial/serial_device_enumerator.h" |
| 9 #include "device/serial/serial_service_impl.h" | 13 #include "device/serial/serial_service_impl.h" |
| 10 #include "device/serial/test_serial_io_handler.h" | 14 #include "device/serial/test_serial_io_handler.h" |
| 11 #include "extensions/browser/mojo/stash_backend.h" | 15 #include "extensions/browser/mojo/stash_backend.h" |
| 12 #include "extensions/common/mojo/keep_alive.mojom.h" | 16 #include "extensions/common/mojo/keep_alive.mojom.h" |
| 13 #include "extensions/renderer/api_test_base.h" | 17 #include "extensions/renderer/api_test_base.h" |
| 14 #include "grit/extensions_renderer_resources.h" | 18 #include "grit/extensions_renderer_resources.h" |
| 15 | 19 |
| 16 // A test launcher for tests for the serial API defined in | 20 // A test launcher for tests for the serial API defined in |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 ASSERT_NO_FATAL_FAILURE( | 714 ASSERT_NO_FATAL_FAILURE( |
| 711 RunTest("serial_unittest.js", "testStashNoConnections")); | 715 RunTest("serial_unittest.js", "testStashNoConnections")); |
| 712 io_handler_ = nullptr; | 716 io_handler_ = nullptr; |
| 713 scoped_ptr<ModuleSystemTestEnvironment> new_env(CreateEnvironment()); | 717 scoped_ptr<ModuleSystemTestEnvironment> new_env(CreateEnvironment()); |
| 714 ApiTestEnvironment new_api_test_env(new_env.get()); | 718 ApiTestEnvironment new_api_test_env(new_env.get()); |
| 715 PrepareEnvironment(&new_api_test_env, stash_backend_.get()); | 719 PrepareEnvironment(&new_api_test_env, stash_backend_.get()); |
| 716 new_api_test_env.RunTest("serial_unittest.js", "testRestoreNoConnections"); | 720 new_api_test_env.RunTest("serial_unittest.js", "testRestoreNoConnections"); |
| 717 } | 721 } |
| 718 | 722 |
| 719 } // namespace extensions | 723 } // namespace extensions |
| OLD | NEW |