| 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/fullscreen/fullscreen_controller_test.h" | 5 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void FullscreenControllerTest::AcceptCurrentFullscreenOrMouseLockRequest() { | 79 void FullscreenControllerTest::AcceptCurrentFullscreenOrMouseLockRequest() { |
| 80 browser()->fullscreen_controller()->OnAcceptFullscreenPermission(); | 80 browser()->fullscreen_controller()->OnAcceptFullscreenPermission(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void FullscreenControllerTest::DenyCurrentFullscreenOrMouseLockRequest() { | 83 void FullscreenControllerTest::DenyCurrentFullscreenOrMouseLockRequest() { |
| 84 browser()->fullscreen_controller()->OnDenyFullscreenPermission(); | 84 browser()->fullscreen_controller()->OnDenyFullscreenPermission(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void FullscreenControllerTest::GoBack() { | 87 void FullscreenControllerTest::GoBack() { |
| 88 content::TestNavigationObserver observer( | 88 content::TestNavigationObserver observer( |
| 89 content::NotificationService::AllSources(), NULL, 1); | 89 content::NotificationService::AllSources(), 1); |
| 90 | 90 |
| 91 chrome::GoBack(browser(), CURRENT_TAB); | 91 chrome::GoBack(browser(), CURRENT_TAB); |
| 92 | 92 |
| 93 observer.Wait(); | 93 observer.Wait(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FullscreenControllerTest::Reload() { | 96 void FullscreenControllerTest::Reload() { |
| 97 content::TestNavigationObserver observer( | 97 content::TestNavigationObserver observer( |
| 98 content::NotificationService::AllSources(), NULL, 1); | 98 content::NotificationService::AllSources(), 1); |
| 99 | 99 |
| 100 chrome::Reload(browser(), CURRENT_TAB); | 100 chrome::Reload(browser(), CURRENT_TAB); |
| 101 | 101 |
| 102 observer.Wait(); | 102 observer.Wait(); |
| 103 } | 103 } |
| 104 | 104 |
| OLD | NEW |