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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth/on_connection/runtest.js

Issue 284183012: Bluetooth: remove Profile API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/bluetooth/on_connection/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth/on_connection/runtest.js b/chrome/test/data/extensions/api_test/bluetooth/on_connection/runtest.js
deleted file mode 100644
index d5325442c9d154a69278149554305c3eab2a7b0f..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/bluetooth/on_connection/runtest.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2013 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.
-
-var deviceName;
-var deviceAddress;
-var profileUuid;
-
-function testOnConnectionEvent() {
- chrome.test.assertEq('d1', deviceName);
- chrome.test.assertEq('11:12:13:14:15:16', deviceAddress);
- chrome.test.assertEq('00001234-0000-1000-8000-00805f9b34fb', profileUuid);
-
- chrome.test.succeed();
-}
-
-chrome.bluetooth.onConnection.addListener(
- function(socket) {
- deviceName = socket.device.name;
- deviceAddress = socket.device.address;
- profileUuid = socket.uuid;
- chrome.bluetooth.disconnect({'socketId': socket.id});
- });
-
-chrome.test.sendMessage('ready',
- function(message) {
- chrome.test.runTests([testOnConnectionEvent]);
- });

Powered by Google App Engine
This is Rietveld 408576698