Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: content/browser/vr/vr_device_manager_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/vr/vr_device_manager.cc ('k') | content/browser/wake_lock/wake_lock_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698