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

Unified Diff: ppapi/tests/test_mouse_lock.cc

Issue 2419413002: Deleted CONTENT_SETTINGS_TYPE_FULLSCREEN and MOUSELOCK. (Closed)
Patch Set: Fix more things. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/tests/test_mouse_lock.cc
diff --git a/ppapi/tests/test_mouse_lock.cc b/ppapi/tests/test_mouse_lock.cc
index 0c4efd4896c30abc69bf3dcb55c5a99dcf42875c..c2b7228198f0321666975c7788bc54c856d0d7ad 100644
--- a/ppapi/tests/test_mouse_lock.cc
+++ b/ppapi/tests/test_mouse_lock.cc
@@ -25,7 +25,6 @@ bool TestMouseLock::Init() {
void TestMouseLock::RunTests(const std::string& filter) {
RUN_TEST(SucceedWhenAllowed, filter);
- RUN_TEST(FailWhenBlocked, filter);
}
void TestMouseLock::DidChangeView(const pp::View& view) {
@@ -51,17 +50,6 @@ std::string TestMouseLock::TestSucceedWhenAllowed() {
PASS();
}
-std::string TestMouseLock::TestFailWhenBlocked() {
- // Content settings are configured to block mouse lock for any site.
- // Please see chrome/test/ppapi/ppapi_interactive_browsertest.cc.
- TestCompletionCallback callback(instance_->pp_instance(), callback_type());
- SimulateUserGesture();
- callback.WaitForResult(LockMouse(callback.GetCallback()));
- ASSERT_NE(PP_OK, callback.result());
-
- PASS();
-}
-
void TestMouseLock::SimulateUserGesture() {
pp::Point mouse_movement;
pp::MouseInputEvent input_event(

Powered by Google App Engine
This is Rietveld 408576698