chromium/chrome/test/data/extensions/api_test/gcm/functions/send_message_default_ttl/send_message_default_ttl.js

// Copyright 2014 The Chromium Authors
// 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",
  data: {
    "key1": "value1",
    "key2": "value2"
  }
};

chrome.test.runTests([
  function testSend() {
    chrome.gcm.send(message, function(messageId) {
      chrome.test.succeed();
    });
  }
]);