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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
6 #include "content/public/common/service_registry.h" | 6 #include "content/public/common/service_registry.h" |
7 #include "content/public/test/content_browser_test.h" | 7 #include "content/public/test/content_browser_test.h" |
8 #include "content/public/test/content_browser_test_utils.h" | 8 #include "content/public/test/content_browser_test_utils.h" |
9 #include "content/public/test/test_utils.h" | 9 #include "content/public/test/test_utils.h" |
10 #include "content/shell/browser/shell.h" | 10 #include "content/shell/browser/shell.h" |
11 #include "content/shell/browser/shell_content_browser_client.h" | 11 #include "content/shell/browser/shell_content_browser_client.h" |
12 #include "device/vibration/vibration_manager.mojom.h" | 12 #include "device/vibration/vibration_manager.mojom.h" |
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
14 | 14 |
15 // These tests run against a dummy implementation of the VibrationManager | 15 // These tests run against a dummy implementation of the VibrationManager |
16 // service. That is, they verify that the service implementation is correctly | 16 // service. That is, they verify that the service implementation is correctly |
17 // exposed to the renderer, whatever the implementation is. | 17 // exposed to the renderer, whatever the implementation is. |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Global, record milliseconds when Vibrate() got called. | 23 // Global, record milliseconds when Vibrate() got called. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 shell()->LoadURL(test_url); | 126 shell()->LoadURL(test_url); |
127 // Wait until VibrationManager::Cancel() got called. | 127 // Wait until VibrationManager::Cancel() got called. |
128 g_wait_cancel_runner->Run(); | 128 g_wait_cancel_runner->Run(); |
129 | 129 |
130 EXPECT_TRUE(g_cancelled); | 130 EXPECT_TRUE(g_cancelled); |
131 } | 131 } |
132 | 132 |
133 } // namespace | 133 } // namespace |
134 | 134 |
135 } // namespace content | 135 } // namespace content |
OLD | NEW |