Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / gcm / functions / send_message_default_ttl / send_message_default_ttl.js
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var message = {
6   messageId: "message-id",
7   destinationId: "destination-id",
8   data: {
9     "key1": "value1",
10     "key2": "value2"
11   }
12 };
13
14 chrome.test.runTests([
15   function testSend() {
16     chrome.gcm.send(message, function(messageId) {
17       chrome.test.succeed();
18     });
19   }
20 ]);