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

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

Issue 2704313002: Remove gcdPrivate API code. (Closed)
Patch Set: Remove gcdPrivate API code. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/gcd_private/api/session.js
diff --git a/chrome/test/data/extensions/api_test/gcd_private/api/session.js b/chrome/test/data/extensions/api_test/gcd_private/api/session.js
deleted file mode 100644
index dcbe90c8931fc524fdd6eae6be7c112e64735071..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/gcd_private/api/session.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-onload = function() {
- chrome.test.runTests([
- function session() {
- function onSessionEstablished(sessionId, status, pairingTypes) {
- chrome.test.assertEq("success", status);
- chrome.test.assertEq(["embeddedCode"], pairingTypes);
- chrome.gcdPrivate.startPairing(1234, "pinCode",
- onPairingStarted.bind(null));
- }
-
- function onPairingStarted(status) {
- chrome.test.assertEq("unknownSessionError", status);
- chrome.gcdPrivate.confirmCode(7567, "1234",
- onCodeConfirmed.bind(null));
- }
-
- function onCodeConfirmed(status) {
- chrome.test.assertEq("unknownSessionError", status);
- chrome.gcdPrivate.sendMessage(555, "/privet/ping", {},
- onMessageSent);
- }
-
- function onMessageSent(status, output) {
- chrome.test.assertEq("unknownSessionError", status);
- chrome.test.notifyPass();
- }
-
- chrome.gcdPrivate.createSession("myService._privet._tcp.local",
- onSessionEstablished);
- }
- ]);
-};

Powered by Google App Engine
This is Rietveld 408576698