OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
6 #include "media/base/media_resources.h" | 6 #include "media/base/media_localization_resources.h" |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 base::string16 FakeLocalizedStringProvider(MessageId message_id) { | 10 base::string16 FakeLocalizedStringProvider(MessageId message_id) { |
11 if (message_id == DEFAULT_AUDIO_DEVICE_NAME) | 11 if (message_id == DEFAULT_AUDIO_DEVICE_NAME) |
12 return base::ASCIIToUTF16("Default"); | 12 return base::ASCIIToUTF16("Default"); |
13 | 13 |
14 return base::ASCIIToUTF16("FakeString"); | 14 return base::ASCIIToUTF16("FakeString"); |
15 } | 15 } |
16 | 16 |
17 void SetUpFakeMediaResources() { | 17 void SetUpFakeMediaResources() { |
18 SetLocalizedStringProvider(FakeLocalizedStringProvider); | 18 SetLocalizedStringProvider(FakeLocalizedStringProvider); |
19 } | 19 } |
20 | 20 |
21 } // namespace media | 21 } // namespace media |
OLD | NEW |