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

Side by Side Diff: ash/system/chromeos/tray_display_unittest.cc

Issue 1223153003: Move JoinString to the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows Created 5 years, 5 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 | « ash/system/chromeos/tray_display.cc ('k') | ash/system/user/button_from_view.cc » ('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 "ash/system/chromeos/tray_display.h" 5 #include "ash/system/chromeos/tray_display.h"
6 6
7 #include "ash/display/display_manager.h" 7 #include "ash/display/display_manager.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/screen_util.h" 9 #include "ash/screen_util.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 27 matching lines...) Expand all
38 } else { 38 } else {
39 lines.push_back(l10n_util::GetStringFUTF16( 39 lines.push_back(l10n_util::GetStringFUTF16(
40 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, 40 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY,
41 name1, base::UTF8ToUTF16(data1))); 41 name1, base::UTF8ToUTF16(data1)));
42 } 42 }
43 if (!name2.empty()) { 43 if (!name2.empty()) {
44 lines.push_back(l10n_util::GetStringFUTF16( 44 lines.push_back(l10n_util::GetStringFUTF16(
45 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, 45 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY,
46 name2, base::UTF8ToUTF16(data2))); 46 name2, base::UTF8ToUTF16(data2)));
47 } 47 }
48 return JoinString(lines, '\n'); 48 return base::JoinString(lines, base::ASCIIToUTF16("\n"));
49 } 49 }
50 50
51 base::string16 GetMirroredTooltipText(const base::string16& headline, 51 base::string16 GetMirroredTooltipText(const base::string16& headline,
52 const base::string16& name, 52 const base::string16& name,
53 const std::string& data) { 53 const std::string& data) {
54 return GetTooltipText(headline, name, data, base::string16(), ""); 54 return GetTooltipText(headline, name, data, base::string16(), "");
55 } 55 }
56 56
57 base::string16 GetFirstDisplayName() { 57 base::string16 GetFirstDisplayName() {
58 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); 58 DisplayManager* display_manager = Shell::GetInstance()->display_manager();
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 // rotate the second. 589 // rotate the second.
590 UpdateDisplay("400x400,200x200/r"); 590 UpdateDisplay("400x400,200x200/r");
591 EXPECT_EQ(l10n_util::GetStringFUTF16( 591 EXPECT_EQ(l10n_util::GetStringFUTF16(
592 IDS_ASH_STATUS_TRAY_DISPLAY_ROTATED, GetSecondDisplayName(), 592 IDS_ASH_STATUS_TRAY_DISPLAY_ROTATED, GetSecondDisplayName(),
593 l10n_util::GetStringUTF16( 593 l10n_util::GetStringUTF16(
594 IDS_ASH_STATUS_TRAY_DISPLAY_ORIENTATION_90)), 594 IDS_ASH_STATUS_TRAY_DISPLAY_ORIENTATION_90)),
595 GetDisplayNotificationAdditionalText()); 595 GetDisplayNotificationAdditionalText());
596 } 596 }
597 597
598 } // namespace ash 598 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | ash/system/user/button_from_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698