Index: chrome/test/data/extensions/api_test/gcd_private/api/send_query.js |
diff --git a/chrome/test/data/extensions/api_test/gcd_private/api/send_query.js b/chrome/test/data/extensions/api_test/gcd_private/api/send_query.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd24da7a39e75a7e978eacf4ecf1c13503d8aa8c |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/gcd_private/api/send_query.js |
@@ -0,0 +1,14 @@ |
+// 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 receiveNewDevice() { |
+ chrome.gcdPrivate.onCloudDeviceStateChanged.addListener( |
+ function(available, device) {}); |
+ |
+ chrome.gcdPrivate.queryForNewLocalDevices(); |
+ chrome.test.notifyPass(); |
+ }]); |
+}; |