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

Side by Side Diff: chrome/browser/chromeos/login/user_controller_unittest.cc

Issue 7649013: Disabled UserControllerTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/login/user_controller.h" 5 #include "chrome/browser/chromeos/login/user_controller.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/user_manager.h" 8 #include "chrome/browser/chromeos/login/user_manager.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 TEST(UserControllerTest, GetNameTooltip) { 15 // See http://crbug.com/92871 for details.
16 TEST(UserControllerTest, DISABLED_GetNameTooltip) {
16 UserController guest_user_controller(NULL, false); 17 UserController guest_user_controller(NULL, false);
17 EXPECT_EQ(UTF16ToWide(l10n_util::GetStringUTF16(IDS_ADD_USER)), 18 EXPECT_EQ(UTF16ToWide(l10n_util::GetStringUTF16(IDS_ADD_USER)),
18 guest_user_controller.GetNameTooltip()); 19 guest_user_controller.GetNameTooltip());
19 20
20 UserController new_user_controller(NULL, true); 21 UserController new_user_controller(NULL, true);
21 EXPECT_EQ(UTF16ToWide(l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)), 22 EXPECT_EQ(UTF16ToWide(l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON)),
22 new_user_controller.GetNameTooltip()); 23 new_user_controller.GetNameTooltip());
23 24
24 UserManager::User existing_user; 25 UserManager::User existing_user;
25 existing_user.set_email("someordinaryuser@domain.com"); 26 existing_user.set_email("someordinaryuser@domain.com");
26 UserController existing_user_controller(NULL, existing_user); 27 UserController existing_user_controller(NULL, existing_user);
27 EXPECT_EQ(L"someordinaryuser (domain.com)", 28 EXPECT_EQ(L"someordinaryuser (domain.com)",
28 existing_user_controller.GetNameTooltip()); 29 existing_user_controller.GetNameTooltip());
29 } 30 }
30 31
31 } // namespace chromeos 32 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698