Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: chrome/test/data/extensions/api_test/gcd_private/api/session.js

Issue 1103603002: Remove deprecated function gcdPrivate.establishSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Apr 22 22:29:12 PDT 2015 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/api/gcd_private.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 onload = function() { 5 onload = function() {
6 chrome.test.runTests([ 6 chrome.test.runTests([
7 function session() { 7 function session() {
8 function onSessionEstablished(sessionId, status, pairingTypes) { 8 function onSessionEstablished(sessionId, status, pairingTypes) {
9 chrome.test.assertEq("success", status); 9 chrome.test.assertEq("success", status);
10 chrome.test.assertEq(["embeddedCode"], pairingTypes); 10 chrome.test.assertEq(["embeddedCode"], pairingTypes);
(...skipping 11 matching lines...) Expand all
22 chrome.test.assertEq("unknownSessionError", status); 22 chrome.test.assertEq("unknownSessionError", status);
23 chrome.gcdPrivate.sendMessage(555, "/privet/ping", {}, 23 chrome.gcdPrivate.sendMessage(555, "/privet/ping", {},
24 onMessageSent); 24 onMessageSent);
25 } 25 }
26 26
27 function onMessageSent(status, output) { 27 function onMessageSent(status, output) {
28 chrome.test.assertEq("unknownSessionError", status); 28 chrome.test.assertEq("unknownSessionError", status);
29 chrome.test.notifyPass(); 29 chrome.test.notifyPass();
30 } 30 }
31 31
32 chrome.gcdPrivate.establishSession("1.2.3.4", 9090, onSessionEstablished); 32 chrome.gcdPrivate.createSession("myService._privet._tcp.local",
33 onSessionEstablished);
33 } 34 }
34 ]); 35 ]);
35 }; 36 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/gcd_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698