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

Side by Side Diff: media/base/fake_localized_strings.cc

Issue 2656523002: Rename media_resources -> localized_strings (Closed)
Patch Set: rebase Created 3 years, 10 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/base/fake_localized_strings.h ('k') | media/base/fake_media_resources.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 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/localized_strings.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 SetUpFakeLocalizedStrings() {
18 SetLocalizedStringProvider(FakeLocalizedStringProvider); 18 SetLocalizedStringProvider(FakeLocalizedStringProvider);
19 } 19 }
20 20
21 } // namespace media 21 } // namespace media
OLDNEW
« no previous file with comments | « media/base/fake_localized_strings.h ('k') | media/base/fake_media_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698