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

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

Issue 375413002: Replace chromeos::UserManager::Get() with chromeos::GetUserManager(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include "ash/magnifier/magnification_controller.h" 7 #include "ash/magnifier/magnification_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, Login) { 265 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, Login) {
266 // Confirms that a11y features are disabled on the login screen. 266 // Confirms that a11y features are disabled on the login screen.
267 EXPECT_FALSE(IsLargeCursorEnabled()); 267 EXPECT_FALSE(IsLargeCursorEnabled());
268 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 268 EXPECT_FALSE(IsSpokenFeedbackEnabled());
269 EXPECT_FALSE(IsHighContrastEnabled()); 269 EXPECT_FALSE(IsHighContrastEnabled());
270 EXPECT_FALSE(IsAutoclickEnabled()); 270 EXPECT_FALSE(IsAutoclickEnabled());
271 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 271 EXPECT_FALSE(IsVirtualKeyboardEnabled());
272 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay()); 272 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay());
273 273
274 // Logs in. 274 // Logs in.
275 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 275 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
276 276
277 // Confirms that the features still disabled just after login. 277 // Confirms that the features still disabled just after login.
278 EXPECT_FALSE(IsLargeCursorEnabled()); 278 EXPECT_FALSE(IsLargeCursorEnabled());
279 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 279 EXPECT_FALSE(IsSpokenFeedbackEnabled());
280 EXPECT_FALSE(IsHighContrastEnabled()); 280 EXPECT_FALSE(IsHighContrastEnabled());
281 EXPECT_FALSE(IsAutoclickEnabled()); 281 EXPECT_FALSE(IsAutoclickEnabled());
282 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 282 EXPECT_FALSE(IsVirtualKeyboardEnabled());
283 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay()); 283 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay());
284 284
285 UserManager::Get()->SessionStarted(); 285 GetUserManager()->SessionStarted();
286 286
287 // Confirms that the features are still disabled just after login. 287 // Confirms that the features are still disabled just after login.
288 EXPECT_FALSE(IsLargeCursorEnabled()); 288 EXPECT_FALSE(IsLargeCursorEnabled());
289 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 289 EXPECT_FALSE(IsSpokenFeedbackEnabled());
290 EXPECT_FALSE(IsHighContrastEnabled()); 290 EXPECT_FALSE(IsHighContrastEnabled());
291 EXPECT_FALSE(IsAutoclickEnabled()); 291 EXPECT_FALSE(IsAutoclickEnabled());
292 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 292 EXPECT_FALSE(IsVirtualKeyboardEnabled());
293 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay()); 293 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay());
294 294
295 // Enables large cursor. 295 // Enables large cursor.
(...skipping 30 matching lines...) Expand all
326 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 326 EXPECT_FALSE(IsSpokenFeedbackEnabled());
327 327
328 // Signal the accessibility manager that a braille display was connected. 328 // Signal the accessibility manager that a braille display was connected.
329 SetBrailleDisplayAvailability(true); 329 SetBrailleDisplayAvailability(true);
330 // Confirms that the spoken feedback is enabled. 330 // Confirms that the spoken feedback is enabled.
331 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 331 EXPECT_TRUE(IsSpokenFeedbackEnabled());
332 } 332 }
333 333
334 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, TypePref) { 334 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, TypePref) {
335 // Logs in. 335 // Logs in.
336 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 336 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
337 UserManager::Get()->SessionStarted(); 337 GetUserManager()->SessionStarted();
338 338
339 // Confirms that the features are disabled just after login. 339 // Confirms that the features are disabled just after login.
340 EXPECT_FALSE(IsLargeCursorEnabled()); 340 EXPECT_FALSE(IsLargeCursorEnabled());
341 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 341 EXPECT_FALSE(IsSpokenFeedbackEnabled());
342 EXPECT_FALSE(IsHighContrastEnabled()); 342 EXPECT_FALSE(IsHighContrastEnabled());
343 EXPECT_FALSE(IsAutoclickEnabled()); 343 EXPECT_FALSE(IsAutoclickEnabled());
344 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay()); 344 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay());
345 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 345 EXPECT_FALSE(IsVirtualKeyboardEnabled());
346 346
347 // Sets the pref as true to enable the large cursor. 347 // Sets the pref as true to enable the large cursor.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 SetAutoclickEnabledPref(false); 386 SetAutoclickEnabledPref(false);
387 EXPECT_FALSE(IsAutoclickEnabled()); 387 EXPECT_FALSE(IsAutoclickEnabled());
388 388
389 SetVirtualKeyboardEnabledPref(false); 389 SetVirtualKeyboardEnabledPref(false);
390 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 390 EXPECT_FALSE(IsVirtualKeyboardEnabled());
391 } 391 }
392 392
393 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, ResumeSavedPref) { 393 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, ResumeSavedPref) {
394 // Loads the profile of the user. 394 // Loads the profile of the user.
395 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 395 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
396 396
397 // Sets the pref to enable large cursor before login. 397 // Sets the pref to enable large cursor before login.
398 SetLargeCursorEnabledPref(true); 398 SetLargeCursorEnabledPref(true);
399 EXPECT_FALSE(IsLargeCursorEnabled()); 399 EXPECT_FALSE(IsLargeCursorEnabled());
400 400
401 // Sets the pref to enable spoken feedback before login. 401 // Sets the pref to enable spoken feedback before login.
402 SetSpokenFeedbackEnabledPref(true); 402 SetSpokenFeedbackEnabledPref(true);
403 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 403 EXPECT_FALSE(IsSpokenFeedbackEnabled());
404 404
405 // Sets the pref to enable high contrast before login. 405 // Sets the pref to enable high contrast before login.
406 SetHighContrastEnabledPref(true); 406 SetHighContrastEnabledPref(true);
407 EXPECT_FALSE(IsHighContrastEnabled()); 407 EXPECT_FALSE(IsHighContrastEnabled());
408 408
409 // Sets the pref to enable autoclick before login. 409 // Sets the pref to enable autoclick before login.
410 SetAutoclickEnabledPref(true); 410 SetAutoclickEnabledPref(true);
411 EXPECT_FALSE(IsAutoclickEnabled()); 411 EXPECT_FALSE(IsAutoclickEnabled());
412 412
413 // Sets the autoclick delay pref before login but the 413 // Sets the autoclick delay pref before login but the
414 // initial value should not change. 414 // initial value should not change.
415 SetAutoclickDelayPref(kTestAutoclickDelayMs); 415 SetAutoclickDelayPref(kTestAutoclickDelayMs);
416 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay()); 416 EXPECT_EQ(default_autoclick_delay(), GetAutoclickDelay());
417 417
418 // Sets the pref to enable the on-screen keyboard before login. 418 // Sets the pref to enable the on-screen keyboard before login.
419 SetVirtualKeyboardEnabledPref(true); 419 SetVirtualKeyboardEnabledPref(true);
420 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 420 EXPECT_FALSE(IsVirtualKeyboardEnabled());
421 421
422 // Logs in. 422 // Logs in.
423 UserManager::Get()->SessionStarted(); 423 GetUserManager()->SessionStarted();
424 424
425 // Confirms that features are enabled by restoring from pref just after login. 425 // Confirms that features are enabled by restoring from pref just after login.
426 EXPECT_TRUE(IsLargeCursorEnabled()); 426 EXPECT_TRUE(IsLargeCursorEnabled());
427 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 427 EXPECT_TRUE(IsSpokenFeedbackEnabled());
428 EXPECT_TRUE(IsHighContrastEnabled()); 428 EXPECT_TRUE(IsHighContrastEnabled());
429 EXPECT_TRUE(IsAutoclickEnabled()); 429 EXPECT_TRUE(IsAutoclickEnabled());
430 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay()); 430 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay());
431 EXPECT_TRUE(IsVirtualKeyboardEnabled()); 431 EXPECT_TRUE(IsVirtualKeyboardEnabled());
432 } 432 }
433 433
434 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, 434 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest,
435 ChangingTypeInvokesNotification) { 435 ChangingTypeInvokesNotification) {
436 MockAccessibilityObserver observer; 436 MockAccessibilityObserver observer;
437 437
438 // Logs in. 438 // Logs in.
439 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 439 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
440 UserManager::Get()->SessionStarted(); 440 GetUserManager()->SessionStarted();
441 441
442 EXPECT_FALSE(observer.observed()); 442 EXPECT_FALSE(observer.observed());
443 observer.reset(); 443 observer.reset();
444 444
445 SetSpokenFeedbackEnabled(true); 445 SetSpokenFeedbackEnabled(true);
446 EXPECT_TRUE(observer.observed()); 446 EXPECT_TRUE(observer.observed());
447 EXPECT_TRUE(observer.observed_enabled()); 447 EXPECT_TRUE(observer.observed_enabled());
448 EXPECT_EQ(observer.observed_type(), 448 EXPECT_EQ(observer.observed_type(),
449 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK); 449 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK);
450 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 450 EXPECT_TRUE(IsSpokenFeedbackEnabled());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 EXPECT_EQ(observer.observed_type(), 488 EXPECT_EQ(observer.observed_type(),
489 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD); 489 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD);
490 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 490 EXPECT_FALSE(IsVirtualKeyboardEnabled());
491 } 491 }
492 492
493 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, 493 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest,
494 ChangingTypePrefInvokesNotification) { 494 ChangingTypePrefInvokesNotification) {
495 MockAccessibilityObserver observer; 495 MockAccessibilityObserver observer;
496 496
497 // Logs in. 497 // Logs in.
498 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 498 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
499 UserManager::Get()->SessionStarted(); 499 GetUserManager()->SessionStarted();
500 500
501 EXPECT_FALSE(observer.observed()); 501 EXPECT_FALSE(observer.observed());
502 observer.reset(); 502 observer.reset();
503 503
504 SetSpokenFeedbackEnabledPref(true); 504 SetSpokenFeedbackEnabledPref(true);
505 EXPECT_TRUE(observer.observed()); 505 EXPECT_TRUE(observer.observed());
506 EXPECT_TRUE(observer.observed_enabled()); 506 EXPECT_TRUE(observer.observed_enabled());
507 EXPECT_EQ(observer.observed_type(), 507 EXPECT_EQ(observer.observed_type(),
508 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK); 508 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK);
509 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 509 EXPECT_TRUE(IsSpokenFeedbackEnabled());
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 EXPECT_TRUE(IsHighContrastEnabled()); 581 EXPECT_TRUE(IsHighContrastEnabled());
582 // Enables autoclick. 582 // Enables autoclick.
583 SetAutoclickEnabled(true); 583 SetAutoclickEnabled(true);
584 EXPECT_TRUE(IsAutoclickEnabled()); 584 EXPECT_TRUE(IsAutoclickEnabled());
585 // Set autoclick delay. 585 // Set autoclick delay.
586 SetAutoclickDelay(kTestAutoclickDelayMs); 586 SetAutoclickDelay(kTestAutoclickDelayMs);
587 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay()); 587 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay());
588 588
589 // Logs in. 589 // Logs in.
590 const char* user_name = GetParam(); 590 const char* user_name = GetParam();
591 UserManager::Get()->UserLoggedIn(user_name, user_name, true); 591 GetUserManager()->UserLoggedIn(user_name, user_name, true);
592 592
593 // Confirms that the features are still enabled just after login. 593 // Confirms that the features are still enabled just after login.
594 EXPECT_TRUE(IsLargeCursorEnabled()); 594 EXPECT_TRUE(IsLargeCursorEnabled());
595 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 595 EXPECT_TRUE(IsSpokenFeedbackEnabled());
596 EXPECT_TRUE(IsHighContrastEnabled()); 596 EXPECT_TRUE(IsHighContrastEnabled());
597 EXPECT_TRUE(IsAutoclickEnabled()); 597 EXPECT_TRUE(IsAutoclickEnabled());
598 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay()); 598 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay());
599 599
600 UserManager::Get()->SessionStarted(); 600 GetUserManager()->SessionStarted();
601 601
602 // Confirms that the features keep enabled after session starts. 602 // Confirms that the features keep enabled after session starts.
603 EXPECT_TRUE(IsLargeCursorEnabled()); 603 EXPECT_TRUE(IsLargeCursorEnabled());
604 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 604 EXPECT_TRUE(IsSpokenFeedbackEnabled());
605 EXPECT_TRUE(IsHighContrastEnabled()); 605 EXPECT_TRUE(IsHighContrastEnabled());
606 EXPECT_TRUE(IsAutoclickEnabled()); 606 EXPECT_TRUE(IsAutoclickEnabled());
607 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay()); 607 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelay());
608 608
609 // Confirms that the prefs have been copied to the user's profile. 609 // Confirms that the prefs have been copied to the user's profile.
610 EXPECT_TRUE(GetLargeCursorEnabledFromPref()); 610 EXPECT_TRUE(GetLargeCursorEnabledFromPref());
611 EXPECT_TRUE(GetSpokenFeedbackEnabledFromPref()); 611 EXPECT_TRUE(GetSpokenFeedbackEnabledFromPref());
612 EXPECT_TRUE(GetHighContrastEnabledFromPref()); 612 EXPECT_TRUE(GetHighContrastEnabledFromPref());
613 EXPECT_TRUE(GetAutoclickEnabledFromPref()); 613 EXPECT_TRUE(GetAutoclickEnabledFromPref());
614 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelayFromPref()); 614 EXPECT_EQ(kTestAutoclickDelayMs, GetAutoclickDelayFromPref());
615 } 615 }
616 616
617 IN_PROC_BROWSER_TEST_P(AccessibilityManagerUserTypeTest, BrailleWhenLoggedIn) { 617 IN_PROC_BROWSER_TEST_P(AccessibilityManagerUserTypeTest, BrailleWhenLoggedIn) {
618 // Logs in. 618 // Logs in.
619 const char* user_name = GetParam(); 619 const char* user_name = GetParam();
620 UserManager::Get()->UserLoggedIn(user_name, user_name, true); 620 GetUserManager()->UserLoggedIn(user_name, user_name, true);
621 UserManager::Get()->SessionStarted(); 621 GetUserManager()->SessionStarted();
622 // The |ComponentExtensionIMEManager| defers some initialization to the 622 // The |ComponentExtensionIMEManager| defers some initialization to the
623 // |FILE| thread. We need to wait for that to finish before continuing. 623 // |FILE| thread. We need to wait for that to finish before continuing.
624 InputMethodManager* imm = InputMethodManager::Get(); 624 InputMethodManager* imm = InputMethodManager::Get();
625 while (!imm->GetComponentExtensionIMEManager()->IsInitialized()) { 625 while (!imm->GetComponentExtensionIMEManager()->IsInitialized()) {
626 content::RunAllPendingInMessageLoop(BrowserThread::FILE); 626 content::RunAllPendingInMessageLoop(BrowserThread::FILE);
627 } 627 }
628 // This object watches for IME preference changes and reflects those in 628 // This object watches for IME preference changes and reflects those in
629 // the IME framework state. 629 // the IME framework state.
630 chromeos::Preferences prefs; 630 chromeos::Preferences prefs;
631 prefs.InitUserPrefsForTesting(PrefServiceSyncable::FromProfile(GetProfile()), 631 prefs.InitUserPrefsForTesting(PrefServiceSyncable::FromProfile(GetProfile()),
632 UserManager::Get()->GetActiveUser()); 632 GetUserManager()->GetActiveUser());
633 633
634 // Make sure we start in the expected state. 634 // Make sure we start in the expected state.
635 EXPECT_FALSE(IsBrailleImeActive()); 635 EXPECT_FALSE(IsBrailleImeActive());
636 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 636 EXPECT_FALSE(IsSpokenFeedbackEnabled());
637 637
638 // Signal the accessibility manager that a braille display was connected. 638 // Signal the accessibility manager that a braille display was connected.
639 SetBrailleDisplayAvailability(true); 639 SetBrailleDisplayAvailability(true);
640 640
641 // Now, both spoken feedback and the Braille IME should be enabled. 641 // Now, both spoken feedback and the Braille IME should be enabled.
642 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 642 EXPECT_TRUE(IsSpokenFeedbackEnabled());
(...skipping 16 matching lines...) Expand all
659 659
660 // Plugging in a display while spoken feedback is enabled should activate 660 // Plugging in a display while spoken feedback is enabled should activate
661 // the Braille IME. 661 // the Braille IME.
662 SetBrailleDisplayAvailability(true); 662 SetBrailleDisplayAvailability(true);
663 EXPECT_TRUE(IsSpokenFeedbackEnabled()); 663 EXPECT_TRUE(IsSpokenFeedbackEnabled());
664 EXPECT_TRUE(IsBrailleImeActive()); 664 EXPECT_TRUE(IsBrailleImeActive());
665 } 665 }
666 666
667 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, AcessibilityMenuVisibility) { 667 IN_PROC_BROWSER_TEST_F(AccessibilityManagerTest, AcessibilityMenuVisibility) {
668 // Log in. 668 // Log in.
669 UserManager::Get()->UserLoggedIn(kTestUserName, kTestUserName, true); 669 GetUserManager()->UserLoggedIn(kTestUserName, kTestUserName, true);
670 UserManager::Get()->SessionStarted(); 670 GetUserManager()->SessionStarted();
671 671
672 // Confirms that the features are disabled. 672 // Confirms that the features are disabled.
673 EXPECT_FALSE(IsLargeCursorEnabled()); 673 EXPECT_FALSE(IsLargeCursorEnabled());
674 EXPECT_FALSE(IsSpokenFeedbackEnabled()); 674 EXPECT_FALSE(IsSpokenFeedbackEnabled());
675 EXPECT_FALSE(IsHighContrastEnabled()); 675 EXPECT_FALSE(IsHighContrastEnabled());
676 EXPECT_FALSE(IsAutoclickEnabled()); 676 EXPECT_FALSE(IsAutoclickEnabled());
677 EXPECT_FALSE(ShouldShowAccessibilityMenu()); 677 EXPECT_FALSE(ShouldShowAccessibilityMenu());
678 EXPECT_FALSE(IsVirtualKeyboardEnabled()); 678 EXPECT_FALSE(IsVirtualKeyboardEnabled());
679 679
680 // Check large cursor. 680 // Check large cursor.
(...skipping 21 matching lines...) Expand all
702 EXPECT_FALSE(ShouldShowAccessibilityMenu()); 702 EXPECT_FALSE(ShouldShowAccessibilityMenu());
703 703
704 // Check on-screen keyboard. 704 // Check on-screen keyboard.
705 SetVirtualKeyboardEnabled(true); 705 SetVirtualKeyboardEnabled(true);
706 EXPECT_TRUE(ShouldShowAccessibilityMenu()); 706 EXPECT_TRUE(ShouldShowAccessibilityMenu());
707 SetVirtualKeyboardEnabled(false); 707 SetVirtualKeyboardEnabled(false);
708 EXPECT_FALSE(ShouldShowAccessibilityMenu()); 708 EXPECT_FALSE(ShouldShowAccessibilityMenu());
709 } 709 }
710 710
711 } // namespace chromeos 711 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698