OLD | NEW |
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 #ifndef PPAPI_TESTS_TEST_POST_MESSAGE_H_ | 5 #ifndef PPAPI_TESTS_TEST_POST_MESSAGE_H_ |
6 #define PPAPI_TESTS_TEST_POST_MESSAGE_H_ | 6 #define PPAPI_TESTS_TEST_POST_MESSAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // we got it. | 48 // we got it. |
49 std::string TestSendInInit(); | 49 std::string TestSendInInit(); |
50 | 50 |
51 // Test some basic functionality; make sure we can send data successfully | 51 // Test some basic functionality; make sure we can send data successfully |
52 // in both directions. | 52 // in both directions. |
53 std::string TestSendingData(); | 53 std::string TestSendingData(); |
54 | 54 |
55 // Test sending ArrayBuffer vars in both directions. | 55 // Test sending ArrayBuffer vars in both directions. |
56 std::string TestSendingArrayBuffer(); | 56 std::string TestSendingArrayBuffer(); |
57 | 57 |
| 58 // Test sending Array vars in both directions. |
| 59 std::string TestSendingArray(); |
| 60 |
| 61 // Test sending Dictionary vars in both directions. |
| 62 std::string TestSendingDictionary(); |
| 63 |
| 64 // Test sending a complex var with references and cycles in both directions. |
| 65 std::string TestSendingComplexVar(); |
| 66 |
58 // Test the MessageEvent object that JavaScript received to make sure it is | 67 // Test the MessageEvent object that JavaScript received to make sure it is |
59 // of the right type and has all the expected fields. | 68 // of the right type and has all the expected fields. |
60 std::string TestMessageEvent(); | 69 std::string TestMessageEvent(); |
61 | 70 |
62 // Test sending a message when no handler exists, make sure nothing happens. | 71 // Test sending a message when no handler exists, make sure nothing happens. |
63 std::string TestNoHandler(); | 72 std::string TestNoHandler(); |
64 | 73 |
65 // Test sending from JavaScript to the plugin with extra parameters, make sure | 74 // Test sending from JavaScript to the plugin with extra parameters, make sure |
66 // nothing happens. | 75 // nothing happens. |
67 std::string TestExtraParam(); | 76 std::string TestExtraParam(); |
68 | 77 |
69 // Test sending messages off of the main thread. | 78 // Test sending messages off of the main thread. |
70 std::string TestNonMainThread(); | 79 std::string TestNonMainThread(); |
71 | 80 |
72 typedef std::vector<pp::Var> VarVector; | 81 typedef std::vector<pp::Var> VarVector; |
73 | 82 |
74 // This is used to store pp::Var objects we receive via a call to | 83 // This is used to store pp::Var objects we receive via a call to |
75 // HandleMessage. | 84 // HandleMessage. |
76 VarVector message_data_; | 85 VarVector message_data_; |
77 }; | 86 }; |
78 | 87 |
79 #endif // PPAPI_TESTS_TEST_POST_MESSAGE_H_ | 88 #endif // PPAPI_TESTS_TEST_POST_MESSAGE_H_ |
80 | 89 |
OLD | NEW |