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

Unified Diff: chrome/test/media_router/test_media_sinks_observer.h

Issue 595663002: Put chromoting isolate targets under chromoting_swarm_tests=1 GYP variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/test/media_router/resources/common.js ('k') | chrome/test/media_router/test_media_sinks_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/media_router/test_media_sinks_observer.h
diff --git a/chrome/test/media_router/test_media_sinks_observer.h b/chrome/test/media_router/test_media_sinks_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4607d879fa5e87847d9e2ee48e369023747b367
--- /dev/null
+++ b/chrome/test/media_router/test_media_sinks_observer.h
@@ -0,0 +1,34 @@
+// 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.
+
+#include <map>
+#include <string>
+#include <vector>
+
+#include "chrome/browser/media/router/media_sinks_observer.h"
+
+#ifndef CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
+#define CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
+
+namespace media_router {
+
+class MediaRouter;
+
+// Test class to implement MediaSinksObserver that receives SinkQueryResults
+// from Media Router and is used for verification.
+class TestMediaSinksObserver : public MediaSinksObserver {
+ public:
+ TestMediaSinksObserver(MediaRouter* router, const MediaSource& source);
+ ~TestMediaSinksObserver() override;
+
+ // MediaSinksObserver implementation.
+ void OnSinksReceived(const std::vector<MediaSink>& result) override;
+
+ // Map of <sink_name, media_sink_object>
+ std::map<std::string, const MediaSink> sink_map;
+};
+
+} // namespace media_router
+
+#endif // CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
« no previous file with comments | « chrome/test/media_router/resources/common.js ('k') | chrome/test/media_router/test_media_sinks_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698