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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Test sending ArrayBuffer vars in both directions. | 72 // Test sending ArrayBuffer vars in both directions. |
73 std::string TestSendingArrayBuffer(); | 73 std::string TestSendingArrayBuffer(); |
74 | 74 |
75 // Test sending Array vars in both directions. | 75 // Test sending Array vars in both directions. |
76 std::string TestSendingArray(); | 76 std::string TestSendingArray(); |
77 | 77 |
78 // Test sending Dictionary vars in both directions. | 78 // Test sending Dictionary vars in both directions. |
79 std::string TestSendingDictionary(); | 79 std::string TestSendingDictionary(); |
80 | 80 |
81 // Test sending Resource vars from JavaScript to the plugin. | 81 // Test sending Resource vars in both directions. |
82 // TODO(mgiuca): Test sending Resource vars in both directions. | |
83 std::string TestSendingResource(); | 82 std::string TestSendingResource(); |
84 | 83 |
85 // Test sending a complex var with references and cycles in both directions. | 84 // Test sending a complex var with references and cycles in both directions. |
86 std::string TestSendingComplexVar(); | 85 std::string TestSendingComplexVar(); |
87 | 86 |
88 // Test the MessageEvent object that JavaScript received to make sure it is | 87 // Test the MessageEvent object that JavaScript received to make sure it is |
89 // of the right type and has all the expected fields. | 88 // of the right type and has all the expected fields. |
90 std::string TestMessageEvent(); | 89 std::string TestMessageEvent(); |
91 | 90 |
92 // Test sending a message when no handler exists, make sure nothing happens. | 91 // Test sending a message when no handler exists, make sure nothing happens. |
93 std::string TestNoHandler(); | 92 std::string TestNoHandler(); |
94 | 93 |
95 // Test sending from JavaScript to the plugin with extra parameters, make sure | 94 // Test sending from JavaScript to the plugin with extra parameters, make sure |
96 // nothing happens. | 95 // nothing happens. |
97 std::string TestExtraParam(); | 96 std::string TestExtraParam(); |
98 | 97 |
99 // Test sending messages off of the main thread. | 98 // Test sending messages off of the main thread. |
100 std::string TestNonMainThread(); | 99 std::string TestNonMainThread(); |
101 | 100 |
102 typedef std::vector<pp::Var> VarVector; | 101 typedef std::vector<pp::Var> VarVector; |
103 | 102 |
104 // This is used to store pp::Var objects we receive via a call to | 103 // This is used to store pp::Var objects we receive via a call to |
105 // HandleMessage. | 104 // HandleMessage. |
106 VarVector message_data_; | 105 VarVector message_data_; |
107 }; | 106 }; |
108 | 107 |
109 #endif // PPAPI_TESTS_TEST_POST_MESSAGE_H_ | 108 #endif // PPAPI_TESTS_TEST_POST_MESSAGE_H_ |
110 | 109 |
OLD | NEW |