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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc

Issue 393033004: Disable flaky EnrollmentScreenTest.TestSuccess test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" 9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h"
10 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" 10 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_COMPLETED)) 52 OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_COMPLETED))
53 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); 53 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
54 enrollment_screen->OnCancel(); 54 enrollment_screen->OnCancel();
55 content::RunThisRunLoop(&run_loop); 55 content::RunThisRunLoop(&run_loop);
56 Mock::VerifyAndClearExpectations(&mock_screen_observer); 56 Mock::VerifyAndClearExpectations(&mock_screen_observer);
57 57
58 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ = 58 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ =
59 WizardController::default_controller(); 59 WizardController::default_controller();
60 } 60 }
61 61
62 IN_PROC_BROWSER_TEST_F(EnrollmentScreenTest, TestSuccess) { 62 // Flaky test: crbug.com/394069
63 IN_PROC_BROWSER_TEST_F(EnrollmentScreenTest, DISABLED_TestSuccess) {
63 ASSERT_TRUE(WizardController::default_controller() != NULL); 64 ASSERT_TRUE(WizardController::default_controller() != NULL);
64 EXPECT_FALSE(StartupUtils::IsOobeCompleted()); 65 EXPECT_FALSE(StartupUtils::IsOobeCompleted());
65 66
66 EnrollmentScreen* enrollment_screen = 67 EnrollmentScreen* enrollment_screen =
67 WizardController::default_controller()->GetEnrollmentScreen(); 68 WizardController::default_controller()->GetEnrollmentScreen();
68 ASSERT_TRUE(enrollment_screen != NULL); 69 ASSERT_TRUE(enrollment_screen != NULL);
69 70
70 base::RunLoop run_loop; 71 base::RunLoop run_loop;
71 MockScreenObserver mock_screen_observer; 72 MockScreenObserver mock_screen_observer;
72 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ = 73 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ =
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); 123 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
123 enrollment_screen->OnCancel(); 124 enrollment_screen->OnCancel();
124 content::RunThisRunLoop(&run_loop); 125 content::RunThisRunLoop(&run_loop);
125 Mock::VerifyAndClearExpectations(&mock_screen_observer); 126 Mock::VerifyAndClearExpectations(&mock_screen_observer);
126 127
127 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ = 128 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ =
128 WizardController::default_controller(); 129 WizardController::default_controller();
129 } 130 }
130 131
131 } // namespace chromeos 132 } // 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