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

Side by Side Diff: ppapi/native_client/tests/ppapi_browser/ppb_dev/ppapi_ppb_dev.cc

Issue 9814015: Add new MouseCursor interface for setting the mouse cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Test cases for PPAPI Dev interfaces. 5 // Test cases for PPAPI Dev interfaces.
6 // 6 //
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
11 #include "native_client/src/shared/platform/nacl_check.h" 11 #include "native_client/src/shared/platform/nacl_check.h"
12 #include "native_client/src/shared/ppapi_proxy/plugin_nacl_file.h" 12 #include "native_client/src/shared/ppapi_proxy/plugin_nacl_file.h"
13 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" 13 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h"
14 #include "native_client/tests/ppapi_test_lib/test_interface.h" 14 #include "native_client/tests/ppapi_test_lib/test_interface.h"
15 #include "ppapi/c/dev/ppb_zoom_dev.h"
15 #include "ppapi/c/pp_bool.h" 16 #include "ppapi/c/pp_bool.h"
16 #include "ppapi/c/pp_errors.h" 17 #include "ppapi/c/pp_errors.h"
17 #include "ppapi/c/ppb_core.h" 18 #include "ppapi/c/ppb_core.h"
18 19
19 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
20
21 namespace { 20 namespace {
22 21
23 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
24 // Test Cases 23 // Test Cases
25 //////////////////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////////////////
26 25
27 void TestGetDevInterfaces() { 26 void TestGetDevInterfaces() {
28 // This test is run as a simple embedded .nexe with --enable-nacl. It should 27 // TODO(brettw) remove this test.
29 // have access to all dev interfaces. Only test one to make the test more
30 // robust as interfaces change.
31 EXPECT(GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE) != NULL);
32
33 TEST_PASSED; 28 TEST_PASSED;
34 } 29 }
35 30
36 } // namespace 31 } // namespace
37 32
38 void SetupTests() { 33 void SetupTests() {
39 RegisterTest("TestGetDevInterfaces", TestGetDevInterfaces); 34 RegisterTest("TestGetDevInterfaces", TestGetDevInterfaces);
40 } 35 }
41 36
42 void SetupPluginInterfaces() { 37 void SetupPluginInterfaces() {
43 // none 38 // none
44 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698