| OLD | NEW |
| 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/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/browser_commands.h" | 8 #include "chrome/browser/ui/browser_commands.h" |
| 9 #include "chrome/browser/ui/browser_tabstrip.h" | 9 #include "chrome/browser/ui/browser_tabstrip.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| 11 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" | 11 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" | 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/test/base/ui_test_utils.h" | |
| 15 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/common/url_constants.h" | 16 #include "content/public/common/url_constants.h" |
| 18 #include "content/public/test/test_navigation_observer.h" | 17 #include "content/public/test/test_navigation_observer.h" |
| 19 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
| 20 #include "base/mac/mac_util.h" | 19 #include "base/mac/mac_util.h" |
| 21 #endif | 20 #endif |
| 22 | 21 |
| 23 using url::kAboutBlankURL; | 22 using url::kAboutBlankURL; |
| 24 using content::WebContents; | 23 using content::WebContents; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ASSERT_TRUE(IsFullscreenBubbleDisplayed()); | 70 ASSERT_TRUE(IsFullscreenBubbleDisplayed()); |
| 72 | 71 |
| 73 // Close tab. Bubble is cleared. | 72 // Close tab. Bubble is cleared. |
| 74 { | 73 { |
| 75 MouseLockNotificationObserver mouse_lock_observer; | 74 MouseLockNotificationObserver mouse_lock_observer; |
| 76 chrome::CloseTab(browser()); | 75 chrome::CloseTab(browser()); |
| 77 mouse_lock_observer.Wait(); | 76 mouse_lock_observer.Wait(); |
| 78 } | 77 } |
| 79 ASSERT_FALSE(IsFullscreenBubbleDisplayed()); | 78 ASSERT_FALSE(IsFullscreenBubbleDisplayed()); |
| 80 } | 79 } |
| OLD | NEW |