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

Unified Diff: chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc

Issue 564043004: Remove implicit conversions from scoped_refptr to T* in extensions code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc b/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc
index 552289c809c7688543bdddf67c175302d15dcb8a..a4981785f443c5f7a8cbd6c18c0ffb5e6e55c366 100644
--- a/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc
+++ b/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc
@@ -101,7 +101,7 @@ class RemovableStorageProviderChromeOsUnitTest : public testing::Test {
const std::string& vendor,
const std::string& model,
uint64 capacity) {
- RemovableStorageDevice* device = FindDevice(devices_, device_path);
+ RemovableStorageDevice* device = FindDevice(devices_.get(), device_path);
ASSERT_TRUE(device != NULL);
@@ -139,8 +139,9 @@ TEST_F(RemovableStorageProviderChromeOsUnitTest, GetAllDevices) {
ASSERT_EQ(2U, devices_->data.size());
ExpectDevice(
- devices_, kDevicePathUSB, kVendorName, kProductName, kDeviceSize);
- ExpectDevice(devices_, kDevicePathSD, kVendorName, kProductName, kDeviceSize);
+ devices_.get(), kDevicePathUSB, kVendorName, kProductName, kDeviceSize);
+ ExpectDevice(
+ devices_.get(), kDevicePathSD, kVendorName, kProductName, kDeviceSize);
}
// Tests that a USB drive with an empty vendor and product gets a generic name.
@@ -158,8 +159,10 @@ TEST_F(RemovableStorageProviderChromeOsUnitTest, EmptyProductAndModel) {
ASSERT_EQ(2U, devices_->data.size());
- ExpectDevice(devices_, kDevicePathUSB, "", kUnknownUSBDiskModel, kDeviceSize);
- ExpectDevice(devices_, kDevicePathSD, "", kUnknownSDDiskModel, kDeviceSize);
+ ExpectDevice(
+ devices_.get(), kDevicePathUSB, "", kUnknownUSBDiskModel, kDeviceSize);
+ ExpectDevice(
+ devices_.get(), kDevicePathSD, "", kUnknownSDDiskModel, kDeviceSize);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698