| 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 "chrome/browser/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 #include "chrome/browser/ui/browser_tabstrip.h" | 6 #include "chrome/browser/ui/browser_tabstrip.h" |
| 7 #include "chrome/browser/ui/browser_window.h" | 7 #include "chrome/browser/ui/browser_window.h" |
| 8 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" | 8 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" |
| 9 #include "chrome/test/base/ui_test_utils.h" |
| 9 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| 10 #include "content/public/browser/render_widget_host_view.h" | 11 #include "content/public/browser/render_widget_host_view.h" |
| 11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
| 12 | 13 |
| 13 using content::WebContents; | 14 using content::WebContents; |
| 14 | 15 |
| 15 class FullscreenControllerInteractiveTest | 16 class FullscreenControllerInteractiveTest |
| 16 : public FullscreenControllerTest { | 17 : public FullscreenControllerTest { |
| 17 protected: | 18 protected: |
| 18 // IsMouseLocked verifies that the FullscreenController state believes | 19 // IsMouseLocked verifies that the FullscreenController state believes |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 | 510 |
| 510 GURL url = test_server()->GetURL("simple.html"); | 511 GURL url = test_server()->GetURL("simple.html"); |
| 511 AddTabAtIndexAndWait(0, url, content::PAGE_TRANSITION_TYPED); | 512 AddTabAtIndexAndWait(0, url, content::PAGE_TRANSITION_TYPED); |
| 512 | 513 |
| 513 // Validate that going fullscreen for a URL defaults to asking permision. | 514 // Validate that going fullscreen for a URL defaults to asking permision. |
| 514 ASSERT_FALSE(IsFullscreenPermissionRequested()); | 515 ASSERT_FALSE(IsFullscreenPermissionRequested()); |
| 515 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); | 516 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(true)); |
| 516 ASSERT_TRUE(IsFullscreenPermissionRequested()); | 517 ASSERT_TRUE(IsFullscreenPermissionRequested()); |
| 517 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); | 518 ASSERT_NO_FATAL_FAILURE(ToggleTabFullscreenNoRetries(false)); |
| 518 } | 519 } |
| OLD | NEW |