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

Side by Side Diff: chrome/browser/media/router/discovery/dial/mock_device_description_service.h

Issue 2701633002: [Media Router] Add DialMediaSinkService and DeviceDescriptionService (Closed)
Patch Set: merge with master Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698