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