Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / media / router / mock_media_router.h
blob6c1d6a8472a2a325fb2b05c44f8b7b558324b9d7
1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
8 #include <string>
9 #include <vector>
11 #include "chrome/browser/media/router/issue.h"
12 #include "chrome/browser/media/router/media_route.h"
13 #include "chrome/browser/media/router/media_router.h"
14 #include "chrome/browser/media/router/media_sink.h"
15 #include "chrome/browser/media/router/media_source.h"
16 #include "testing/gmock/include/gmock/gmock.h"
18 namespace media_router {
20 // Media Router mock class. Used for testing purposes.
21 class MockMediaRouter : public MediaRouter {
22 public:
23 MockMediaRouter();
24 virtual ~MockMediaRouter();
26 MOCK_METHOD3(CreateRoute,
27 void(const MediaSourceId& source_id,
28 const MediaSinkId& sink_id,
29 const MediaRouteResponseCallback& callback));
30 MOCK_METHOD1(CloseRoute, void(const MediaRouteId& route_id));
31 MOCK_METHOD2(PostMessage,
32 void(const MediaRouteId& route_id, const std::string& message));
33 MOCK_METHOD1(ClearIssue, void(const Issue::IssueId& issue_id));
34 MOCK_METHOD1(AddIssuesObserver, void(IssuesObserver* observer));
35 MOCK_METHOD1(RemoveIssuesObserver, void(IssuesObserver* observer));
37 MOCK_METHOD1(RegisterMediaSinksObserver, void(MediaSinksObserver* observer));
38 MOCK_METHOD1(UnregisterMediaSinksObserver,
39 void(MediaSinksObserver* observer));
40 MOCK_METHOD1(RegisterMediaRoutesObserver,
41 void(MediaRoutesObserver* observer));
42 MOCK_METHOD1(UnregisterMediaRoutesObserver,
43 void(MediaRoutesObserver* observer));
46 } // namespace media_router
48 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_