Index: chrome/test/data/extensions/api_test/gcd_private/api/device_info.js |
diff --git a/chrome/test/data/extensions/api_test/gcd_private/api/device_info.js b/chrome/test/data/extensions/api_test/gcd_private/api/device_info.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f428574da8eedd38600fc49eb48b1a943b25c093 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/gcd_private/api/device_info.js |
@@ -0,0 +1,18 @@ |
+// Copyright 2015 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 deviceInfo() { |
+ function onDeviceInfo(status, info) { |
+ chrome.test.assertEq("success", status); |
+ chrome.test.assertEq(info["version"], "3.0"); |
+ window.setTimeout(chrome.test.notifyPass,3000); |
+ } |
+ |
+ chrome.gcdPrivate.getDeviceInfo("myService._privet._tcp.local", |
+ onDeviceInfo); |
+ } |
+ ]); |
+}; |