#include "chrome/test/base/web_ui_mocha_browser_test.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/test_switches.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_test_data_source.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/common/page_type.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
namespace {
bool WaitForTestToFinish(content::WebContents* web_contents) { … }
}
WebUIMochaBrowserTest::WebUIMochaBrowserTest()
: … { … }
WebUIMochaBrowserTest::~WebUIMochaBrowserTest() = default;
void WebUIMochaBrowserTest::set_test_loader_host(const std::string& host) { … }
void WebUIMochaBrowserTest::set_test_loader_scheme(const std::string& scheme) { … }
content::WebContents* WebUIMochaBrowserTest::GetWebContentsForSetup() { … }
void WebUIMochaBrowserTest::SetUpOnMainThread() { … }
void WebUIMochaBrowserTest::RunTest(const std::string& file,
const std::string& trigger) { … }
void WebUIMochaBrowserTest::OnWebContentsAvailable(
content::WebContents* web_contents) { … }
void WebUIMochaBrowserTest::RunTest(const std::string& file,
const std::string& trigger,
const bool& skip_test_loader) { … }
testing::AssertionResult WebUIMochaBrowserTest::RunTestOnWebContents(
content::WebContents* web_contents,
const std::string& file,
const std::string& trigger,
const bool& skip_test_loader) { … }
void WebUIMochaBrowserTest::RunTestWithoutTestLoader(
const std::string& file,
const std::string& trigger) { … }
testing::AssertionResult WebUIMochaBrowserTest::SimulateTestLoader(
content::WebContents* web_contents,
const std::string& file) { … }
void WebUIMochaFocusTest::OnWebContentsAvailable(
content::WebContents* web_contents) { … }