Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / ppapi / ppapi_interactive_browsertest.cc
blobec026a0ece841502c5b046fa632ce7033ba1f616
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/test/ppapi/ppapi_test.h"
7 #include "build/build_config.h"
8 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h"
11 #include "components/content_settings/core/browser/host_content_settings_map.h"
14 // Interface tests.
17 // Disable tests under ASAN. http://crbug.com/104832.
18 // This is a bit heavy handed, but the majority of these tests fail under ASAN.
19 // See bug for history.
20 #if !defined(ADDRESS_SANITIZER) && !defined(SYZYASAN)
22 // Disabled due to timeouts: http://crbug.com/136548
23 IN_PROC_BROWSER_TEST_F(
24 OutOfProcessPPAPITest, DISABLED_MouseLock_SucceedWhenAllowed) {
25 HostContentSettingsMap* settings_map =
26 HostContentSettingsMapFactory::GetForProfile(browser()->profile());
28 settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
29 CONTENT_SETTING_ALLOW);
31 RunTestViaHTTP("MouseLock_SucceedWhenAllowed");
34 // Disabled due to flaky timeouts: http://crbug.com/137421
35 IN_PROC_BROWSER_TEST_F(
36 OutOfProcessPPAPITest, DISABLED_MouseLock_FailWhenBlocked) {
37 HostContentSettingsMap* settings_map =
38 HostContentSettingsMapFactory::GetForProfile(browser()->profile());
40 settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
41 CONTENT_SETTING_BLOCK);
43 RunTestViaHTTP("MouseLock_FailWhenBlocked");
46 #endif // ADDRESS_SANITIZER