xref: /aosp_15_r20/external/cronet/net/device_bound_sessions/test_util.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2024 The Chromium Authors
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 NET_DEVICE_BOUND_SESSIONS_TEST_UTIL_H_
6 #define NET_DEVICE_BOUND_SESSIONS_TEST_UTIL_H_
7 
8 #include "net/device_bound_sessions/device_bound_session_registration_fetcher_param.h"
9 #include "net/device_bound_sessions/device_bound_session_service.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11 
12 namespace net {
13 
14 class DeviceBoundSessionServiceMock : public DeviceBoundSessionService {
15  public:
16   DeviceBoundSessionServiceMock();
17   ~DeviceBoundSessionServiceMock() override;
18 
19   MOCK_METHOD(
20       void,
21       RegisterBoundSession,
22       (const DeviceBoundSessionRegistrationFetcherParam& registration_params),
23       (override));
24 };
25 
26 }  // namespace net
27 
28 #endif  // NET_DEVICE_BOUND_SESSIONS_TEST_UTIL_H_
29