- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / webrtc_cast / basics.js
1 // Copyright 2013 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 chrome.test.runTests([
6   function udpTransport() {
7     chrome.webrtc.castUdpTransport.create(function(info) {
8       chrome.webrtc.start(info.transportId,
9                           {address: "127.0.0.1", port: 60613});
10       chrome.webrtc.stop(info.transportId);
11       chrome.webrtc.destroy(info.transportId);
12       chrome.test.succeed();
13     });
14     // TODO(hclam): Remove this line when the API is actually working.
15     // This is there so the test can finish.
16     chrome.test.succeed();
17   }
18 ]);