Index: chrome/test/data/extensions/api_test/gcm/functions/send_message_data/send_message_data.js |
diff --git a/chrome/test/data/extensions/api_test/gcm/functions/send_message_data/send_message_data.js b/chrome/test/data/extensions/api_test/gcm/functions/send_message_data/send_message_data.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58f4ccb89644cd0944d635f9809f9db83a6b8d81 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/gcm/functions/send_message_data/send_message_data.js |
@@ -0,0 +1,21 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+var message = { |
+ messageId: "message-id", |
+ destinationId: "destination-id", |
+ timeToLive: 2419200, |
+ data: { |
+ "key1": "value1", |
+ "key2": "value2" |
+ } |
+}; |
+ |
+chrome.test.runTests([ |
+ function testSend() { |
+ chrome.gcm.send(message, function(messageId) { |
+ chrome.test.succeed(); |
+ }); |
+ } |
+]); |