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

Side by Side Diff: ppapi/tests/test_mouse_lock.cc

Issue 10736012: Disable SucceedWhenAllowed due to timeouts. (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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/tests/test_mouse_lock.h" 5 #include "ppapi/tests/test_mouse_lock.h"
6 6
7 #include "ppapi/cpp/input_event.h" 7 #include "ppapi/cpp/input_event.h"
8 #include "ppapi/cpp/view.h" 8 #include "ppapi/cpp/view.h"
9 #include "ppapi/tests/testing_instance.h" 9 #include "ppapi/tests/testing_instance.h"
10 10
11 REGISTER_TEST_CASE(MouseLock); 11 REGISTER_TEST_CASE(MouseLock);
12 12
13 TestMouseLock::TestMouseLock(TestingInstance* instance) 13 TestMouseLock::TestMouseLock(TestingInstance* instance)
14 : TestCase(instance), 14 : TestCase(instance),
15 MouseLock(instance), 15 MouseLock(instance),
16 nested_event_(instance->pp_instance()) { 16 nested_event_(instance->pp_instance()) {
17 } 17 }
18 18
19 TestMouseLock::~TestMouseLock() { 19 TestMouseLock::~TestMouseLock() {
20 } 20 }
21 21
22 bool TestMouseLock::Init() { 22 bool TestMouseLock::Init() {
23 return CheckTestingInterface(); 23 return CheckTestingInterface();
24 } 24 }
25 25
26 void TestMouseLock::RunTests(const std::string& filter) { 26 void TestMouseLock::RunTests(const std::string& filter) {
27 RUN_TEST(SucceedWhenAllowed, filter); 27 // Disabled due to timeouts: http://crbug.com/136548
yzshen1 2012/07/10 18:20:05 The better way is to disable it in src/chrome/test
28 // RUN_TEST(SucceedWhenAllowed, filter);
28 RUN_TEST(FailWhenBlocked, filter); 29 RUN_TEST(FailWhenBlocked, filter);
29 } 30 }
30 31
31 void TestMouseLock::DidChangeView(const pp::View& view) { 32 void TestMouseLock::DidChangeView(const pp::View& view) {
32 position_ = view.GetRect(); 33 position_ = view.GetRect();
33 } 34 }
34 35
35 void TestMouseLock::MouseLockLost() { 36 void TestMouseLock::MouseLockLost() {
36 nested_event_.Signal(); 37 nested_event_.Signal();
37 } 38 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 0, // time_stamp 71 0, // time_stamp
71 0, // modifiers 72 0, // modifiers
72 PP_INPUTEVENT_MOUSEBUTTON_LEFT, 73 PP_INPUTEVENT_MOUSEBUTTON_LEFT,
73 position_.CenterPoint(), 74 position_.CenterPoint(),
74 1, // click_count 75 1, // click_count
75 mouse_movement); 76 mouse_movement);
76 77
77 testing_interface_->SimulateInputEvent(instance_->pp_instance(), 78 testing_interface_->SimulateInputEvent(instance_->pp_instance(),
78 input_event.pp_resource()); 79 input_event.pp_resource());
79 } 80 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698