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

Side by Side Diff: media/audio/fake_audio_log_factory.cc

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast + windows build 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/audio/fake_audio_log_factory.h" 5 #include "media/audio/fake_audio_log_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 namespace media { 9 namespace media {
10 10
11 class FakeAudioLogImpl : public AudioLog { 11 class FakeAudioLogImpl : public AudioLog {
12 public: 12 public:
13 FakeAudioLogImpl() {} 13 FakeAudioLogImpl() {}
14 ~FakeAudioLogImpl() override {} 14 ~FakeAudioLogImpl() override {}
15 void OnCreated(int component_id, 15 void OnCreated(int component_id,
16 const media::AudioParameters& params, 16 const media::AudioParameters& params,
17 const std::string& device_id) override {} 17 const std::string& device_id) override {}
18 void OnStarted(int component_id) override {} 18 void OnStarted(int component_id) override {}
19 void OnStopped(int component_id) override {} 19 void OnStopped(int component_id) override {}
20 void OnClosed(int component_id) override {} 20 void OnClosed(int component_id) override {}
21 void OnError(int component_id) override {} 21 void OnError(int component_id) override {}
22 void OnSetVolume(int component_id, double volume) override {} 22 void OnSetVolume(int component_id, double volume) override {}
23 void OnSwitchOutputDevice(int component_id, 23 void OnSwitchOutputDevice(int component_id,
24 const std::string& device_id) override {} 24 const std::string& device_id) override {}
25 }; 25 };
26 26
27 FakeAudioLogFactory::FakeAudioLogFactory() {} 27 FakeAudioLogFactory::FakeAudioLogFactory() {}
28 FakeAudioLogFactory::~FakeAudioLogFactory() {} 28 FakeAudioLogFactory::~FakeAudioLogFactory() {}
29 29
30 scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( 30 std::unique_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog(
31 AudioComponent component) { 31 AudioComponent component) {
32 return scoped_ptr<AudioLog>(new FakeAudioLogImpl()); 32 return std::unique_ptr<AudioLog>(new FakeAudioLogImpl());
danakj 2016/04/22 22:47:36 include memory or WrapUnique
dcheng 2016/04/22 23:13:20 Done.
33 } 33 }
34 34
35 } // namespace media 35 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698