| 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 "base/macros.h" |
| 5 #include "base/memory/linked_ptr.h" | 6 #include "base/memory/linked_ptr.h" |
| 6 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "content/browser/vr/test/fake_vr_device.h" | 8 #include "content/browser/vr/test/fake_vr_device.h" |
| 8 #include "content/browser/vr/test/fake_vr_device_provider.h" | 9 #include "content/browser/vr/test/fake_vr_device_provider.h" |
| 9 #include "content/browser/vr/vr_device_manager.h" | 10 #include "content/browser/vr/vr_device_manager.h" |
| 10 #include "content/browser/vr/vr_device_provider.h" | 11 #include "content/browser/vr/vr_device_provider.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 88 |
| 88 provider_->RemoveDevice(device1.get()); | 89 provider_->RemoveDevice(device1.get()); |
| 89 webvr_devices = device_manager_->GetVRDevices(); | 90 webvr_devices = device_manager_->GetVRDevices(); |
| 90 // Should have successfully returned one device. | 91 // Should have successfully returned one device. |
| 91 EXPECT_EQ(1u, webvr_devices.size()); | 92 EXPECT_EQ(1u, webvr_devices.size()); |
| 92 // The WebVRDevice index should match the only remaining device id. | 93 // The WebVRDevice index should match the only remaining device id. |
| 93 EXPECT_EQ(webvr_devices[0]->index, device2->id()); | 94 EXPECT_EQ(webvr_devices[0]->index, device2->id()); |
| 94 } | 95 } |
| 95 | 96 |
| 96 } // namespace content | 97 } // namespace content |
| OLD | NEW |