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

Unified Diff: chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.cc

Issue 2874243003: [mDns] Make DnsSdRegistry a leaky singleton (Closed)
Patch Set: resolve code review comments from Mark Created 3 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
« no previous file with comments | « chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.cc
diff --git a/chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.cc b/chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2e8f055a7a5f72342a8245e5c04446bf9a4f0bee
--- /dev/null
+++ b/chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.cc
@@ -0,0 +1,19 @@
+// Copyright 2017 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.
+
+#include "chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.h"
+
+namespace media_router {
+
+MockDnsSdRegistry::MockDnsSdRegistry(DnsSdRegistry::DnsSdObserver* observer)
+ : observer_(observer) {}
+
+MockDnsSdRegistry::~MockDnsSdRegistry() {}
+
+void MockDnsSdRegistry::DispatchMDnsEvent(const std::string& service_type,
+ const DnsSdServiceList& services) {
+ observer_->OnDnsSdEvent(service_type, services);
+}
+
+} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/discovery/mdns/mock_dns_sd_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698