| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/public/browser/render_frame_host.h" | 12 #include "content/public/browser/render_frame_host.h" |
| 13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
| 15 #include "content/public/test/content_browser_test.h" | 15 #include "content/public/test/content_browser_test.h" |
| 16 #include "content/public/test/content_browser_test_utils.h" | 16 #include "content/public/test/content_browser_test_utils.h" |
| 17 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
| 18 #include "content/shell/browser/shell.h" | 18 #include "content/shell/browser/shell.h" |
| 19 #include "device/vibration/vibration_manager.mojom.h" | 19 #include "device/vibration/vibration_manager.mojom.h" |
| 20 #include "mojo/public/cpp/bindings/strong_binding.h" | 20 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 21 #include "services/shell/public/cpp/interface_registry.h" | 21 #include "services/service_manager/public/cpp/interface_registry.h" |
| 22 | 22 |
| 23 // These tests run against a dummy implementation of the VibrationManager | 23 // These tests run against a dummy implementation of the VibrationManager |
| 24 // service. That is, they verify that the service implementation is correctly | 24 // service. That is, they verify that the service implementation is correctly |
| 25 // exposed to the renderer, whatever the implementation is. | 25 // exposed to the renderer, whatever the implementation is. |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // Global, record milliseconds when FakeVibrationManager::Vibrate got called. | 31 // Global, record milliseconds when FakeVibrationManager::Vibrate got called. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 g_wait_vibrate_runner->Run(); | 193 g_wait_vibrate_runner->Run(); |
| 194 ASSERT_TRUE(DestroyIframe()); | 194 ASSERT_TRUE(DestroyIframe()); |
| 195 g_wait_cancel_runner->Run(); | 195 g_wait_cancel_runner->Run(); |
| 196 | 196 |
| 197 ASSERT_TRUE(g_cancelled); | 197 ASSERT_TRUE(g_cancelled); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace | 200 } // namespace |
| 201 | 201 |
| 202 } // namespace content | 202 } // namespace content |
| OLD | NEW |