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

Unified Diff: extensions/browser/api/webcam_private/visca_webcam_unittest.cc

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr 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
Index: extensions/browser/api/webcam_private/visca_webcam_unittest.cc
diff --git a/extensions/browser/api/webcam_private/visca_webcam_unittest.cc b/extensions/browser/api/webcam_private/visca_webcam_unittest.cc
index 5cf98c49b12609c4283488c4de79180fa17ba40a..303f467025075c685af5a29f6f2748981d06c012 100644
--- a/extensions/browser/api/webcam_private/visca_webcam_unittest.cc
+++ b/extensions/browser/api/webcam_private/visca_webcam_unittest.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "extensions/browser/api/webcam_private/visca_webcam.h"
+
#include <vector>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "content/public/test/test_browser_thread_bundle.h"
-#include "extensions/browser/api/webcam_private/visca_webcam.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
@@ -92,7 +94,7 @@ class ViscaWebcamTest : public testing::Test {
protected:
ViscaWebcamTest() {
webcam_ = new ViscaWebcam;
- webcam_->OpenForTesting(make_scoped_ptr(new TestSerialConnection));
+ webcam_->OpenForTesting(base::WrapUnique(new TestSerialConnection));
}
~ViscaWebcamTest() override {}
« no previous file with comments | « extensions/browser/api/webcam_private/visca_webcam.cc ('k') | extensions/browser/api/webcam_private/webcam_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698