OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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. | |
4 | |
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_MOCK_DEVICE_DESCRIPTION_SERVI CE_H_ | |
6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_MOCK_DEVICE_DESCRIPTION_SERVI CE_H_ | |
7 | |
8 #include "base/test/mock_callback.h" | |
9 #include "chrome/browser/media/router/discovery/dial/device_description_service. h" | |
10 #include "testing/gmock/include/gmock/gmock.h" | |
11 #include "testing/gtest/include/gtest/gtest.h" | |
12 | |
13 namespace media_router { | |
14 | |
15 class MockDeviceDescriptionService : public DeviceDescriptionService { | |
mark a. foltz
2017/04/25 21:06:26
Is this only used in DialMediaSinkServiceUnittest?
zhaobin
2017/04/26 18:50:05
Done.
| |
16 public: | |
17 MockDeviceDescriptionService(DeviceDescriptionParseSuccessCallback success_cb, | |
18 DeviceDescriptionParseErrorCallback error_cb); | |
19 ~MockDeviceDescriptionService() override; | |
20 | |
21 MOCK_METHOD2(GetDeviceDescriptions, | |
22 void(const std::vector<DialDeviceData>& devices, | |
23 net::URLRequestContextGetter* request_context)); | |
24 }; | |
25 | |
26 } // namespace media_router | |
27 | |
28 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_MOCK_DEVICE_DESCRIPTION_SE RVICE_H_ | |
OLD | NEW |