| OLD | NEW |
| 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" | 9 #include "base/memory/ptr_util.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 void OnSwitchOutputDevice(int component_id, | 25 void OnSwitchOutputDevice(int component_id, |
| 26 const std::string& device_id) override {} | 26 const std::string& device_id) override {} |
| 27 void OnLogMessage(int component_id, const std::string& message) override {} | 27 void OnLogMessage(int component_id, const std::string& message) override {} |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 FakeAudioLogFactory::FakeAudioLogFactory() {} | 30 FakeAudioLogFactory::FakeAudioLogFactory() {} |
| 31 FakeAudioLogFactory::~FakeAudioLogFactory() {} | 31 FakeAudioLogFactory::~FakeAudioLogFactory() {} |
| 32 | 32 |
| 33 std::unique_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( | 33 std::unique_ptr<AudioLog> FakeAudioLogFactory::CreateAudioLog( |
| 34 AudioComponent component) { | 34 AudioComponent component) { |
| 35 return base::WrapUnique(new FakeAudioLogImpl()); | 35 return base::MakeUnique<FakeAudioLogImpl>(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace media | 38 } // namespace media |
| OLD | NEW |