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 const socket = chrome.socket;
7 var onListen = function(result) {
8 chrome.test.assertEq(0, result);
12 var onCreate = function(socketInfo) {
13 sid = socketInfo.socketId;
14 socket.listen(sid, '0.0.0.0', 1234, onListen);
17 chrome.test.runTests([
19 socket.create('tcp', {}, onCreate);