This source file includes following definitions.
- RunTest
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include <vector>
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
class FileManagerJsTest : public InProcessBrowserTest {
public:
void RunTest(const base::FilePath& file) {
GURL url = ui_test_utils::GetTestUrl(
base::FilePath(FILE_PATH_LITERAL("file_manager/unit_tests")), file);
ui_test_utils::NavigateToURL(browser(), url);
content::WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
ASSERT_TRUE(web_contents);
const std::vector<int> empty_libraries;
EXPECT_TRUE(ExecuteWebUIResourceTest(web_contents, empty_libraries));
}
};
IN_PROC_BROWSER_TEST_F(
FileManagerJsTest, NavigationListModelTest) {
RunTest(base::FilePath(
FILE_PATH_LITERAL("navigation_list_model_unittest.html")));
}
IN_PROC_BROWSER_TEST_F(
FileManagerJsTest, FileOperationHandlerTest) {
RunTest(base::FilePath(
FILE_PATH_LITERAL("file_operation_handler_unittest.html")));
}
IN_PROC_BROWSER_TEST_F(
FileManagerJsTest, ProgressCenterItemGroupTest) {
RunTest(base::FilePath(
FILE_PATH_LITERAL("progress_center_item_group_unittest.html")));
}
IN_PROC_BROWSER_TEST_F(
FileManagerJsTest, DeviceHandlerTest) {
RunTest(base::FilePath(
FILE_PATH_LITERAL("device_handler_unittest.html")));
}