summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_post_message.h
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 20:54:00 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 20:54:00 +0000
commitffd49dfc0729301c77dcf5026d29fa9cbedaecc1 (patch)
tree24bf475f55603bc61de7a7a9ff8c425cd16b120d /ppapi/tests/test_post_message.h
parent30dca89c84bec4276bf9ad89b9fdbd18b8cf56a5 (diff)
downloadchromium_src-ffd49dfc0729301c77dcf5026d29fa9cbedaecc1.zip
chromium_src-ffd49dfc0729301c77dcf5026d29fa9cbedaecc1.tar.gz
chromium_src-ffd49dfc0729301c77dcf5026d29fa9cbedaecc1.tar.bz2
Hook up V8<->Var conversion in the pepper message channel
This hooks up V8<->Var conversion in the pepper message channel so that Array/Dictionaries can be transmitted to and from the plugin using Post/HandleMessage. This CL also adds integration tests for transmitting Arrays/Dictionaries. BUG=236958 Review URL: https://chromiumcodereview.appspot.com/14636009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_post_message.h')
-rw-r--r--ppapi/tests/test_post_message.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ppapi/tests/test_post_message.h b/ppapi/tests/test_post_message.h
index 8ba3e4e..3ea69e8 100644
--- a/ppapi/tests/test_post_message.h
+++ b/ppapi/tests/test_post_message.h
@@ -43,6 +43,12 @@ class TestPostMessage : public TestCase {
// at the time of invocation.
int WaitForMessages();
+ // Verifies that the given javascript assertions are true of the message
+ // (|test_data|) passed via PostMessage().
+ std::string CheckMessageProperties(
+ const pp::Var& test_data,
+ const std::vector<std::string>& properties_to_check);
+
// Test that we can send a message from Instance::Init. Note the actual
// message is sent in TestPostMessage::Init, and this test simply makes sure
// we got it.
@@ -55,6 +61,15 @@ class TestPostMessage : public TestCase {
// Test sending ArrayBuffer vars in both directions.
std::string TestSendingArrayBuffer();
+ // Test sending Array vars in both directions.
+ std::string TestSendingArray();
+
+ // Test sending Dictionary vars in both directions.
+ std::string TestSendingDictionary();
+
+ // Test sending a complex var with references and cycles in both directions.
+ std::string TestSendingComplexVar();
+
// Test the MessageEvent object that JavaScript received to make sure it is
// of the right type and has all the expected fields.
std::string TestMessageEvent();