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

Unified Diff: media/base/android/media_drm_bridge_unittest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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 | « media/base/android/media_drm_bridge_cdm_context.h ('k') | media/base/android/media_player_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_drm_bridge_unittest.cc
diff --git a/media/base/android/media_drm_bridge_unittest.cc b/media/base/android/media_drm_bridge_unittest.cc
index 62f25d6514b94f05ee9842c36903c3757994e14a..5fd43340a18368d557669a07f0d3101f068ceaf1 100644
--- a/media/base/android/media_drm_bridge_unittest.cc
+++ b/media/base/android/media_drm_bridge_unittest.cc
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/android/build_info.h"
#include "base/bind.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "media/base/android/media_drm_bridge.h"
#include "media/base/android/provision_fetcher.h"
@@ -47,8 +50,8 @@ namespace {
// Mock ProvisionFetcher.
class MockProvisionFetcher : public ProvisionFetcher {
public:
- static scoped_ptr<ProvisionFetcher> Create() {
- return scoped_ptr<ProvisionFetcher>(new MockProvisionFetcher());
+ static std::unique_ptr<ProvisionFetcher> Create() {
+ return base::WrapUnique(new MockProvisionFetcher);
}
// ProvisionFetcher implementation.
« no previous file with comments | « media/base/android/media_drm_bridge_cdm_context.h ('k') | media/base/android/media_player_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698