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

Unified Diff: ppapi/tests/test_post_message.h

Issue 14636009: Hook up V8<->Var conversion in the pepper message channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | ppapi/tests/test_post_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_post_message.h
diff --git a/ppapi/tests/test_post_message.h b/ppapi/tests/test_post_message.h
index 8ba3e4e16c4146601631c0793576ce44da1c1ba3..3ea69e898b382d064bb718a23cb787246cbc3097 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();
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | ppapi/tests/test_post_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698