1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 function registerListeners() {
9 chrome.mdns.onServiceList.addListener(function(services) {
10 if (numEvents++ == 1) {
11 chrome.test.succeed();
13 }, {'serviceType': '_googlecast._tcp.local'});
15 chrome.mdns.onServiceList.addListener(function(services) {
16 if (numEvents++ == 1) {
17 chrome.test.succeed();
19 }, {'serviceType': '_testing._tcp.local'});
20 chrome.test.notifyPass();