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

Side by Side Diff: chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc

Issue 2452983002: ChromeOS: This CL moves chromeos/login/user_names* to user_mananger. (Closed)
Patch Set: Removed unused #includes Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <queue> 5 #include <queue>
6 6
7 #include "ash/common/accelerators/accelerator_controller.h" 7 #include "ash/common/accelerators/accelerator_controller.h"
8 #include "ash/common/accelerators/accelerator_table.h" 8 #include "ash/common/accelerators/accelerator_table.h"
9 #include "ash/common/accessibility_types.h" 9 #include "ash/common/accessibility_types.h"
10 #include "ash/common/system/tray/system_tray.h" 10 #include "ash/common/system/tray/system_tray.h"
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/ui/browser_commands.h" 29 #include "chrome/browser/ui/browser_commands.h"
30 #include "chrome/browser/ui/browser_window.h" 30 #include "chrome/browser/ui/browser_window.h"
31 #include "chrome/browser/ui/tabs/tab_strip_model.h" 31 #include "chrome/browser/ui/tabs/tab_strip_model.h"
32 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/extensions/extension_constants.h" 33 #include "chrome/common/extensions/extension_constants.h"
34 #include "chrome/test/base/in_process_browser_test.h" 34 #include "chrome/test/base/in_process_browser_test.h"
35 #include "chrome/test/base/interactive_test_utils.h" 35 #include "chrome/test/base/interactive_test_utils.h"
36 #include "chrome/test/base/testing_profile.h" 36 #include "chrome/test/base/testing_profile.h"
37 #include "chrome/test/base/ui_test_utils.h" 37 #include "chrome/test/base/ui_test_utils.h"
38 #include "chromeos/chromeos_switches.h" 38 #include "chromeos/chromeos_switches.h"
39 #include "chromeos/login/user_names.h"
40 #include "components/signin/core/account_id/account_id.h" 39 #include "components/signin/core/account_id/account_id.h"
40 #include "components/user_manager/user_names.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "content/public/common/url_constants.h" 42 #include "content/public/common/url_constants.h"
43 #include "content/public/test/browser_test_utils.h" 43 #include "content/public/test/browser_test_utils.h"
44 #include "content/public/test/test_utils.h" 44 #include "content/public/test/test_utils.h"
45 #include "extensions/browser/extension_host.h" 45 #include "extensions/browser/extension_host.h"
46 #include "extensions/browser/process_manager.h" 46 #include "extensions/browser/process_manager.h"
47 #include "testing/gtest/include/gtest/gtest.h" 47 #include "testing/gtest/include/gtest/gtest.h"
48 #include "ui/app_list/app_list_switches.h" 48 #include "ui/app_list/app_list_switches.h"
49 #include "ui/base/test/ui_controls.h" 49 #include "ui/base/test/ui_controls.h"
50 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 50 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 protected: 256 protected:
257 SpokenFeedbackTest() {} 257 SpokenFeedbackTest() {}
258 virtual ~SpokenFeedbackTest() {} 258 virtual ~SpokenFeedbackTest() {}
259 259
260 void SetUpCommandLine(base::CommandLine* command_line) override { 260 void SetUpCommandLine(base::CommandLine* command_line) override {
261 if (GetParam() == kTestAsGuestUser) { 261 if (GetParam() == kTestAsGuestUser) {
262 command_line->AppendSwitch(chromeos::switches::kGuestSession); 262 command_line->AppendSwitch(chromeos::switches::kGuestSession);
263 command_line->AppendSwitch(::switches::kIncognito); 263 command_line->AppendSwitch(::switches::kIncognito);
264 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, 264 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile,
265 "user"); 265 "user");
266 command_line->AppendSwitchASCII(switches::kLoginUser, 266 command_line->AppendSwitchASCII(
267 login::GuestAccountId().GetUserEmail()); 267 switches::kLoginUser, user_manager::GuestAccountId().GetUserEmail());
268 } 268 }
269 } 269 }
270 }; 270 };
271 271
272 INSTANTIATE_TEST_CASE_P( 272 INSTANTIATE_TEST_CASE_P(
273 TestAsNormalAndGuestUser, 273 TestAsNormalAndGuestUser,
274 SpokenFeedbackTest, 274 SpokenFeedbackTest,
275 ::testing::Values(kTestAsNormalUser, 275 ::testing::Values(kTestAsNormalUser,
276 kTestAsGuestUser)); 276 kTestAsGuestUser));
277 277
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 class GuestSpokenFeedbackTest : public LoggedInSpokenFeedbackTest { 629 class GuestSpokenFeedbackTest : public LoggedInSpokenFeedbackTest {
630 protected: 630 protected:
631 GuestSpokenFeedbackTest() {} 631 GuestSpokenFeedbackTest() {}
632 ~GuestSpokenFeedbackTest() override {} 632 ~GuestSpokenFeedbackTest() override {}
633 633
634 void SetUpCommandLine(base::CommandLine* command_line) override { 634 void SetUpCommandLine(base::CommandLine* command_line) override {
635 command_line->AppendSwitch(chromeos::switches::kGuestSession); 635 command_line->AppendSwitch(chromeos::switches::kGuestSession);
636 command_line->AppendSwitch(::switches::kIncognito); 636 command_line->AppendSwitch(::switches::kIncognito);
637 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, "user"); 637 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, "user");
638 command_line->AppendSwitchASCII(switches::kLoginUser, 638 command_line->AppendSwitchASCII(
639 login::GuestAccountId().GetUserEmail()); 639 switches::kLoginUser, user_manager::GuestAccountId().GetUserEmail());
640 } 640 }
641 641
642 private: 642 private:
643 DISALLOW_COPY_AND_ASSIGN(GuestSpokenFeedbackTest); 643 DISALLOW_COPY_AND_ASSIGN(GuestSpokenFeedbackTest);
644 }; 644 };
645 645
646 IN_PROC_BROWSER_TEST_F(GuestSpokenFeedbackTest, FocusToolbar) { 646 IN_PROC_BROWSER_TEST_F(GuestSpokenFeedbackTest, FocusToolbar) {
647 EnableChromeVox(); 647 EnableChromeVox();
648 648
649 chrome::ExecuteCommand(browser(), IDC_FOCUS_TOOLBAR); 649 chrome::ExecuteCommand(browser(), IDC_FOCUS_TOOLBAR);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync( 705 ASSERT_TRUE(ui_test_utils::SendKeyPressToWindowSync(
706 window, ui::VKEY_TAB, false, true /*shift*/, false, false)); 706 window, ui::VKEY_TAB, false, true /*shift*/, false, false));
707 while (speech_monitor_.GetNextUtterance() != "Select your language:") { 707 while (speech_monitor_.GetNextUtterance() != "Select your language:") {
708 } 708 }
709 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance()); 709 EXPECT_EQ("English ( United States)", speech_monitor_.GetNextUtterance());
710 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(), 710 EXPECT_TRUE(base::MatchPattern(speech_monitor_.GetNextUtterance(),
711 "Combo box * of *")); 711 "Combo box * of *"));
712 } 712 }
713 713
714 } // namespace chromeos 714 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698