Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: chrome/test/ppapi/ppapi_interactive_browsertest.cc

Issue 10699045: Fix PPB_MouseLock.LockMouse crash and add tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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.
4
5 #include "chrome/test/ppapi/ppapi_test.h"
6
7 #include "build/build_config.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h"
11
12 //
13 // Interface tests.
14 //
15
16 // Disable tests under ASAN. http://crbug.com/104832.
17 // This is a bit heavy handed, but the majority of these tests fail under ASAN.
18 // See bug for history.
19 #if !defined(ADDRESS_SANITIZER)
20
21 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MouseLock_SucceedWhenAllowed) {
22 HostContentSettingsMap* settings_map =
23 browser()->profile()->GetHostContentSettingsMap();
24
25 settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
26 CONTENT_SETTING_ALLOW);
27
28 RunTestViaHTTP("MouseLock_SucceedWhenAllowed");
29 }
30
31 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MouseLock_FailWhenBlocked) {
32 HostContentSettingsMap* settings_map =
33 browser()->profile()->GetHostContentSettingsMap();
34
35 settings_map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_MOUSELOCK,
36 CONTENT_SETTING_BLOCK);
37
38 RunTestViaHTTP("MouseLock_FailWhenBlocked");
39 }
40
41 #endif // ADDRESS_SANITIZER
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698