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

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: . 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
« no previous file with comments | « media/audio/fake_audio_log_factory.h ('k') | media/audio/fake_audio_output_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/memory/ptr_util.h"
10
9 namespace media { 11 namespace media {
10 12
11 class FakeAudioLogImpl : public AudioLog { 13 class FakeAudioLogImpl : public AudioLog {
12 public: 14 public:
13 FakeAudioLogImpl() {} 15 FakeAudioLogImpl() {}
14 ~FakeAudioLogImpl() override {} 16 ~FakeAudioLogImpl() override {}
15 void OnCreated(int component_id, 17 void OnCreated(int component_id,
16 const media::AudioParameters& params, 18 const media::AudioParameters& params,
17 const std::string& device_id) override {} 19 const std::string& device_id) override {}
18 void OnStarted(int component_id) override {} 20 void OnStarted(int component_id) override {}
19 void OnStopped(int component_id) override {} 21 void OnStopped(int component_id) override {}
20 void OnClosed(int component_id) override {} 22 void OnClosed(int component_id) override {}
21 void OnError(int component_id) override {} 23 void OnError(int component_id) override {}
22 void OnSetVolume(int component_id, double volume) override {} 24 void OnSetVolume(int component_id, double volume) override {}
23 void OnSwitchOutputDevice(int component_id, 25 void OnSwitchOutputDevice(int component_id,
24 const std::string& device_id) override {} 26 const std::string& device_id) override {}
25 }; 27 };
26 28
27 FakeAudioLogFactory::FakeAudioLogFactory() {} 29 FakeAudioLogFactory::FakeAudioLogFactory() {}
28 FakeAudioLogFactory::~FakeAudioLogFactory() {} 30 FakeAudioLogFactory::~FakeAudioLogFactory() {}
29 31
30 scoped_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( 32 std::unique_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog(
31 AudioComponent component) { 33 AudioComponent component) {
32 return scoped_ptr<AudioLog>(new FakeAudioLogImpl()); 34 return base::WrapUnique(new FakeAudioLogImpl());
33 } 35 }
34 36
35 } // namespace media 37 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/fake_audio_log_factory.h ('k') | media/audio/fake_audio_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698