1 // Copyright (c) 2012 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.
5 function channelIdCallback(message) {
6 chrome.test.assertEq(message.channelId, "");
9 function testGetChannelId() {
10 // the api call should fail because no user is signed in
11 chrome.pushMessaging.getChannelId(
12 false, chrome.test.callbackFail("The user is not signed in.",
16 chrome.test.runTests([testGetChannelId]);