This source file includes following definitions.
- GetBrowser
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "build/build_config.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller_state_test.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
class FullscreenControllerStateInteractiveTest
: public InProcessBrowserTest,
public FullscreenControllerStateTest {
private:
virtual Browser* GetBrowser() OVERRIDE;
};
Browser* FullscreenControllerStateInteractiveTest::GetBrowser() {
return InProcessBrowserTest::browser();
}
IN_PROC_BROWSER_TEST_F(FullscreenControllerStateInteractiveTest,
DISABLED_TransitionsForEachState) {
AddTabAtIndex(0, GURL(content::kAboutBlankURL),
content::PAGE_TRANSITION_TYPED);
TestTransitionsForEachState();
}
#define TEST_EVENT(state, event) \
IN_PROC_BROWSER_TEST_F(FullscreenControllerStateInteractiveTest, \
DISABLED_##state##__##event##__Empty) { \
} \
IN_PROC_BROWSER_TEST_F(FullscreenControllerStateInteractiveTest, \
DISABLED_##state##__##event) { \
AddTabAtIndex(0, GURL(content::kAboutBlankURL), \
content::PAGE_TRANSITION_TYPED); \
ASSERT_NO_FATAL_FAILURE(TestStateAndEvent(state, event)) \
<< GetAndClearDebugLog(); \
}
#include "chrome/browser/ui/fullscreen/fullscreen_controller_state_tests.h"
IN_PROC_BROWSER_TEST_F(FullscreenControllerStateInteractiveTest,
DISABLED_ManualTest) {
AddTabAtIndex(0, GURL(content::kAboutBlankURL),
content::PAGE_TRANSITION_TYPED);
ASSERT_TRUE(InvokeEvent(TOGGLE_FULLSCREEN)) << GetAndClearDebugLog();
ASSERT_TRUE(InvokeEvent(WINDOW_CHANGE)) << GetAndClearDebugLog();
ASSERT_TRUE(InvokeEvent(TAB_FULLSCREEN_TRUE)) << GetAndClearDebugLog();
ASSERT_TRUE(InvokeEvent(TOGGLE_FULLSCREEN)) << GetAndClearDebugLog();
ASSERT_TRUE(InvokeEvent(WINDOW_CHANGE)) << GetAndClearDebugLog();
scoped_refptr<content::MessageLoopRunner> message_loop
= new content::MessageLoopRunner();
message_loop->Run();
}