| 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..820283e572de93d39bb6849a6fbfb4a2c592b7fd
|
| --- /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.onLocalDeviceStateChanged.addListener(
|
| + function(available, device) {});
|
| +
|
| + chrome.gcdPrivate.queryForNewLocalDevices();
|
| + chrome.test.notifyPass();
|
| + }]);
|
| +};
|
|
|