| OLD | NEW |
| 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/profiles/avatar_menu_model.h" | 5 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
| 9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "chrome/test/base/testing_browser_process.h" | 14 #include "chrome/test/base/testing_browser_process.h" |
| 15 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 typedef InProcessBrowserTest AvatarMenuModelTest; | 19 typedef InProcessBrowserTest AvatarMenuModelTest; |
| 20 | 20 |
| 21 IN_PROC_BROWSER_TEST_F(AvatarMenuModelTest, SignOut) { | 21 IN_PROC_BROWSER_TEST_F(AvatarMenuModelTest, SignOut) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 EXPECT_FALSE(cache.ProfileIsSigninRequiredAtIndex(index)); | 39 EXPECT_FALSE(cache.ProfileIsSigninRequiredAtIndex(index)); |
| 40 model.SetLogoutURL("about:blank"); | 40 model.SetLogoutURL("about:blank"); |
| 41 model.BeginSignOut(); | 41 model.BeginSignOut(); |
| 42 EXPECT_TRUE(cache.ProfileIsSigninRequiredAtIndex(index)); | 42 EXPECT_TRUE(cache.ProfileIsSigninRequiredAtIndex(index)); |
| 43 | 43 |
| 44 window_close_observer.Wait(); // rely on test time-out for failure indication | 44 window_close_observer.Wait(); // rely on test time-out for failure indication |
| 45 EXPECT_EQ(0U, browser_list->size()); | 45 EXPECT_EQ(0U, browser_list->size()); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| OLD | NEW |