This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "chrome/test/ppapi/ppapi_test.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#if !defined(ADDRESS_SANITIZER) && !defined(SYZYASAN)
IN_PROC_BROWSER_TEST_F(
OutOfProcessPPAPITest, DISABLED_MouseLock_SucceedWhenAllowed) {
HostContentSettingsMap* settings_map =
browser()->profile()->GetHostContentSettingsMap();
settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
CONTENT_SETTING_ALLOW);
RunTestViaHTTP("MouseLock_SucceedWhenAllowed");
}
IN_PROC_BROWSER_TEST_F(
OutOfProcessPPAPITest, DISABLED_MouseLock_FailWhenBlocked) {
HostContentSettingsMap* settings_map =
browser()->profile()->GetHostContentSettingsMap();
settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
CONTENT_SETTING_BLOCK);
RunTestViaHTTP("MouseLock_FailWhenBlocked");
}
#endif