#include "chrome/browser/vr/test/ui_test.h"
#include "chrome/browser/vr/elements/rect.h"
#include "chrome/browser/vr/model/model.h"
#include "chrome/browser/vr/render_info.h"
#include "chrome/browser/vr/test/animation_utils.h"
#include "chrome/browser/vr/test/constants.h"
#include "chrome/browser/vr/ui.h"
#include "chrome/browser/vr/ui_scene.h"
#include "chrome/browser/vr/ui_scene_creator.h"
#include "ui/gfx/geometry/vector3d_f.h"
namespace vr {
namespace {
gfx::Vector3dF ComputeNormal(const gfx::Transform& transform) { … }
bool WillElementFaceCamera(const UiElement* element) { … }
bool WillElementBeVisible(const UiElement* element) { … }
}
UiTest::UiTest() { … }
UiTest::~UiTest() { … }
void UiTest::SetUp() { … }
bool UiTest::IsVisible(UiElementName name) const { … }
bool UiTest::VerifyVisibility(const std::set<UiElementName>& names,
bool expected_visibility) const { … }
void UiTest::VerifyOnlyElementsVisible(
const std::string& trace_context,
const std::set<UiElementName>& names) const { … }
bool UiTest::RunForMs(float milliseconds) { … }
bool UiTest::RunForSeconds(float seconds) { … }
bool UiTest::AdvanceFrame() { … }
bool UiTest::RunFor(base::TimeDelta delta) { … }
bool UiTest::OnBeginFrame() const { … }
}