OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "device/vr/vr_display_impl.h" | 5 #include "device/vr/vr_display_impl.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "device/vr/test/fake_vr_device.h" | 10 #include "device/vr/test/fake_vr_device.h" |
10 #include "device/vr/test/fake_vr_device_provider.h" | 11 #include "device/vr/test/fake_vr_device_provider.h" |
11 #include "device/vr/test/fake_vr_display_impl_client.h" | 12 #include "device/vr/test/fake_vr_display_impl_client.h" |
12 #include "device/vr/test/fake_vr_service_client.h" | 13 #include "device/vr/test/fake_vr_service_client.h" |
13 #include "device/vr/vr_device_manager.h" | 14 #include "device/vr/vr_device_manager.h" |
14 #include "device/vr/vr_service.mojom.h" | 15 #include "device/vr/vr_service.mojom.h" |
15 #include "device/vr/vr_service_impl.h" | 16 #include "device/vr/vr_service_impl.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 auto service_2 = BindService(); | 116 auto service_2 = BindService(); |
116 | 117 |
117 device()->OnChanged(); | 118 device()->OnChanged(); |
118 | 119 |
119 base::RunLoop().RunUntilIdle(); | 120 base::RunLoop().RunUntilIdle(); |
120 | 121 |
121 for (auto client : clients_) | 122 for (auto client : clients_) |
122 EXPECT_TRUE(client->CheckDeviceId(device()->id())); | 123 EXPECT_TRUE(client->CheckDeviceId(device()->id())); |
123 } | 124 } |
124 } | 125 } |
OLD | NEW |