| 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_service_impl.h" | 5 #include "device/vr/vr_service_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_service_client.h" | 12 #include "device/vr/test/fake_vr_service_client.h" |
| 12 #include "device/vr/vr_device_manager.h" | 13 #include "device/vr/vr_device_manager.h" |
| 13 #include "device/vr/vr_service.mojom.h" | 14 #include "device/vr/vr_service.mojom.h" |
| 14 #include "device/vr/vr_service_impl.h" | 15 #include "device/vr/vr_service_impl.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 service_1.reset(); | 65 service_1.reset(); |
| 65 | 66 |
| 66 EXPECT_EQ(1u, ServiceCount()); | 67 EXPECT_EQ(1u, ServiceCount()); |
| 67 | 68 |
| 68 service_2.reset(); | 69 service_2.reset(); |
| 69 | 70 |
| 70 EXPECT_EQ(0u, ServiceCount()); | 71 EXPECT_EQ(0u, ServiceCount()); |
| 71 } | 72 } |
| 72 | 73 |
| 73 } | 74 } |
| OLD | NEW |