#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.h"
#include <memory.h>
#include <iomanip>
#include <iostream>
#include "build/build_config.h"
#include "chrome/browser/fullscreen.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_test.h"
#include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
FullscreenControllerStateTest::FullscreenControllerStateTest() { … }
FullscreenControllerStateTest::~FullscreenControllerStateTest() = default;
const char* FullscreenControllerStateTest::GetStateString(State state) { … }
const char* FullscreenControllerStateTest::GetEventString(Event event) { … }
bool FullscreenControllerStateTest::IsWindowFullscreenStateChangedReentrant() { … }
void FullscreenControllerStateTest::TransitionToState(State final_state) { … }
bool FullscreenControllerStateTest::TransitionAStepTowardState(
State destination_state) { … }
const char* FullscreenControllerStateTest::GetWindowStateString() { … }
bool FullscreenControllerStateTest::InvokeEvent(Event event) { … }
void FullscreenControllerStateTest::VerifyWindowState() { … }
void FullscreenControllerStateTest::TestTransitionsForEachState() { … }
FullscreenControllerStateTest::StateTransitionInfo
FullscreenControllerStateTest::NextTransitionInShortestPath(
State source,
State destination,
int search_limit) { … }
std::string FullscreenControllerStateTest::GetAndClearDebugLog() { … }
bool FullscreenControllerStateTest::ShouldSkipStateAndEventPair(State state,
Event event) { … }
bool FullscreenControllerStateTest::ShouldSkipTest(State state, Event event) { … }
void FullscreenControllerStateTest::TestStateAndEvent(State state,
Event event) { … }
void FullscreenControllerStateTest::VerifyWindowStateExpectations(
FullscreenForBrowserExpectation fullscreen_for_browser,
FullscreenForTabExpectation fullscreen_for_tab) { … }
void FullscreenControllerStateTest::TearDown() { … }
FullscreenController* FullscreenControllerStateTest::GetFullscreenController() { … }
std::string FullscreenControllerStateTest::GetTransitionTableAsString() const { … }
std::string FullscreenControllerStateTest::GetStateTransitionsAsString() const { … }