Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
jam
2012/07/03 00:56:12
nit: do you really need a header for this test fil
yzshen1
2012/07/03 21:39:17
All other test_<ppapi_interface> have correspondin
jam
2012/07/04 04:43:00
ah, I wasn't familiar with that convention.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PAPPI_TESTS_TEST_MOUSE_LOCK_H_ | |
| 6 #define PPAPI_TESTS_TEST_MOUSE_LOCK_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "ppapi/cpp/mouse_lock.h" | |
| 11 #include "ppapi/cpp/rect.h" | |
| 12 #include "ppapi/tests/test_case.h" | |
| 13 #include "ppapi/tests/test_utils.h" | |
| 14 | |
| 15 class TestMouseLock: public TestCase, public pp::MouseLock { | |
| 16 public: | |
| 17 explicit TestMouseLock(TestingInstance* instance); | |
| 18 virtual ~TestMouseLock(); | |
| 19 | |
| 20 // TestCase implementation. | |
| 21 virtual bool Init(); | |
| 22 virtual void RunTests(const std::string& filter); | |
| 23 virtual void DidChangeView(const pp::View& view); | |
| 24 | |
| 25 // pp::MouseLock implementation. | |
| 26 virtual void MouseLockLost(); | |
| 27 | |
| 28 private: | |
| 29 std::string TestSucceedWhenAllowed(); | |
| 30 std::string TestFailWhenBlocked(); | |
| 31 | |
| 32 void SimulateUserGesture(); | |
| 33 | |
| 34 pp::Rect position_; | |
| 35 | |
| 36 NestedEvent nested_event_; | |
| 37 }; | |
| 38 | |
| 39 #endif // PPAPI_TESTS_TEST_MOUSE_LOCK_H_ | |
| OLD | NEW |