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

Unified Diff: device/usb/webusb_descriptors_unittest.cc

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « device/usb/webusb_descriptors.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/webusb_descriptors_unittest.cc
diff --git a/device/usb/webusb_descriptors_unittest.cc b/device/usb/webusb_descriptors_unittest.cc
index 4834e445d74b91bf3b6f9741fe33965ee6330237..8350a6d107df9ef80cb8b4a4309c7dd62ecb405a 100644
--- a/device/usb/webusb_descriptors_unittest.cc
+++ b/device/usb/webusb_descriptors_unittest.cc
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "device/usb/webusb_descriptors.h"
+
#include <stdint.h>
#include <algorithm>
+#include <memory>
#include "base/bind.h"
#include "base/stl_util.h"
#include "device/usb/mock_usb_device_handle.h"
-#include "device/usb/webusb_descriptors.h"
#include "testing/gtest/include/gtest/gtest.h"
using testing::_;
@@ -77,7 +79,7 @@ ACTION_P2(InvokeCallback, data, length) {
}
void ExpectAllowedOriginsAndLandingPage(
- scoped_ptr<WebUsbAllowedOrigins> allowed_origins,
+ std::unique_ptr<WebUsbAllowedOrigins> allowed_origins,
const GURL& landing_page) {
EXPECT_EQ(GURL("https://example.com/index.html"), landing_page);
ASSERT_TRUE(allowed_origins);
« no previous file with comments | « device/usb/webusb_descriptors.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698