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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm

Issue 2899083003: Delete unused tutorial code from profile switcher/user manager. (Closed)
Patch Set: fix merge Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
index 5ec616b4f404354b4361c31a2de77be895a25e35..0f74dceebd5837a9bd2f9d86708193ec7830ba03 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -89,18 +89,12 @@ class ProfileChooserControllerTest : public CocoaProfileTest {
}
void StartProfileChooserController() {
- StartProfileChooserControllerWithTutorialMode(profiles::TUTORIAL_MODE_NONE);
- }
-
- void StartProfileChooserControllerWithTutorialMode(
- profiles::TutorialMode mode) {
NSRect frame = [test_window() frame];
NSPoint point = NSMakePoint(NSMidX(frame), NSMidY(frame));
controller_.reset([[ProfileChooserController alloc]
initWithBrowser:browser()
anchoredAt:point
viewMode:profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER
- tutorialMode:mode
serviceType:signin::GAIA_SERVICE_TYPE_NONE
accessPoint:signin_metrics::AccessPoint::
ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN]);
@@ -194,29 +188,6 @@ TEST_F(ProfileChooserControllerTest, BubbleAlignment) {
[controller() close];
}
-TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterWelcome) {
- // The welcome upgrade tutorial takes precedence so show it then dismiss it.
- // The right click tutorial should be shown right away.
- StartProfileChooserControllerWithTutorialMode(
- profiles::TUTORIAL_MODE_WELCOME_UPGRADE);
-
- [controller() dismissTutorial:nil];
-}
-
-TEST_F(ProfileChooserControllerTest, RightClickTutorialShownAfterReopen) {
- // The welcome upgrade tutorial takes precedence so show it then close the
- // menu. Reopening the menu should show the tutorial.
- StartProfileChooserController();
-
- [controller() close];
- StartProfileChooserController();
-
- // The tutorial must be manually dismissed so it should still be shown after
- // closing and reopening the menu,
- [controller() close];
- StartProfileChooserController();
-}
-
TEST_F(ProfileChooserControllerTest,
LocalProfileActiveCardLinksWithNewMenu) {
StartProfileChooserController();
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | chrome/browser/ui/cocoa/profiles/user_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698