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

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

Issue 4703005: Mark failing unittest to FAILS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 "app/l10n_util.h" 5 #include "app/l10n_util.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/chromeos/login/account_screen.h" 7 #include "chrome/browser/chromeos/login/account_screen.h"
8 #include "chrome/browser/chromeos/login/eula_view.h" 8 #include "chrome/browser/chromeos/login/eula_view.h"
9 #include "chrome/browser/chromeos/login/language_switch_menu.h" 9 #include "chrome/browser/chromeos/login/language_switch_menu.h"
10 #include "chrome/browser/chromeos/login/login_screen.h" 10 #include "chrome/browser/chromeos/login/login_screen.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class WizardControllerTest : public chromeos::WizardInProcessBrowserTest { 61 class WizardControllerTest : public chromeos::WizardInProcessBrowserTest {
62 protected: 62 protected:
63 WizardControllerTest() : chromeos::WizardInProcessBrowserTest( 63 WizardControllerTest() : chromeos::WizardInProcessBrowserTest(
64 WizardController::kTestNoScreenName) {} 64 WizardController::kTestNoScreenName) {}
65 virtual ~WizardControllerTest() {} 65 virtual ~WizardControllerTest() {}
66 66
67 private: 67 private:
68 DISALLOW_COPY_AND_ASSIGN(WizardControllerTest); 68 DISALLOW_COPY_AND_ASSIGN(WizardControllerTest);
69 }; 69 };
70 70
71 IN_PROC_BROWSER_TEST_F(WizardControllerTest, SwitchLanguage) { 71 // TODO(zelidrag): Need to revisit this once translation for fr and ar is
72 // complete. See http://crosbug.com/8974
73 IN_PROC_BROWSER_TEST_F(WizardControllerTest, FAILS_SwitchLanguage) {
72 WizardController* const wizard = controller(); 74 WizardController* const wizard = controller();
73 ASSERT_TRUE(wizard != NULL); 75 ASSERT_TRUE(wizard != NULL);
74 wizard->ShowFirstScreen(WizardController::kNetworkScreenName); 76 wizard->ShowFirstScreen(WizardController::kNetworkScreenName);
75 views::View* current_screen = wizard->contents(); 77 views::View* current_screen = wizard->contents();
76 ASSERT_TRUE(current_screen != NULL); 78 ASSERT_TRUE(current_screen != NULL);
77 79
78 // Checking the default locale. Provided that the profile is cleared in SetUp. 80 // Checking the default locale. Provided that the profile is cleared in SetUp.
79 EXPECT_EQ("en-US", g_browser_process->GetApplicationLocale()); 81 EXPECT_EQ("en-US", g_browser_process->GetApplicationLocale());
80 EXPECT_STREQ("en", icu::Locale::getDefault().getLanguage()); 82 EXPECT_STREQ("en", icu::Locale::getDefault().getLanguage());
81 EXPECT_FALSE(base::i18n::IsRTL()); 83 EXPECT_FALSE(base::i18n::IsRTL());
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen()); 264 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen());
263 265
264 focus_manager = controller()->contents()->GetFocusManager(); 266 focus_manager = controller()->contents()->GetFocusManager();
265 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1); 267 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1);
266 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen)); 268 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen));
267 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen()); 269 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen());
268 } 270 }
269 271
270 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 18, 272 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 18,
271 add_tests_for_new_control_flow_you_just_introduced); 273 add_tests_for_new_control_flow_you_just_introduced);
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