From ffd49dfc0729301c77dcf5026d29fa9cbedaecc1 Mon Sep 17 00:00:00 2001 From: "raymes@chromium.org" Date: Fri, 17 May 2013 20:54:00 +0000 Subject: 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 --- ppapi/tests/test_post_message.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ppapi/tests/test_post_message.h') 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& 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(); -- cgit v1.1