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/memory/ptr_util.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "device/vr/test/fake_vr_device.h" | 10 #include "device/vr/test/fake_vr_device.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // of the services related with this device will receive "vrdevicechanged" | 112 // of the services related with this device will receive "vrdevicechanged" |
113 // event. | 113 // event. |
114 TEST_F(VRDisplayImplTest, DeviceChangedDispatched) { | 114 TEST_F(VRDisplayImplTest, DeviceChangedDispatched) { |
115 auto service_1 = BindService(); | 115 auto service_1 = BindService(); |
116 auto service_2 = BindService(); | 116 auto service_2 = BindService(); |
117 | 117 |
118 device()->OnChanged(); | 118 device()->OnChanged(); |
119 | 119 |
120 base::RunLoop().RunUntilIdle(); | 120 base::RunLoop().RunUntilIdle(); |
121 | 121 |
122 for (auto client : clients_) | 122 for (auto* client : clients_) |
123 EXPECT_TRUE(client->CheckDeviceId(device()->id())); | 123 EXPECT_TRUE(client->CheckDeviceId(device()->id())); |
124 } | 124 } |
125 } | 125 } |
OLD | NEW |