1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

content / browser / sms / test / mock_user_consent_handler.h [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_SMS_TEST_MOCK_USER_CONSENT_HANDLER_H_
#define CONTENT_BROWSER_SMS_TEST_MOCK_USER_CONSENT_HANDLER_H_

#include "content/browser/sms/user_consent_handler.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace content {

class MockUserConsentHandler : public UserConsentHandler {
 public:
  MockUserConsentHandler();
  ~MockUserConsentHandler() override;
  MOCK_METHOD(void,
              RequestUserConsent,
              (const std::string& one_time_code,
               CompletionCallback on_complete),
              (override));
  MOCK_METHOD(bool, is_active, (), (const, override));
  MOCK_METHOD(bool, is_async, (), (const, override));
};

}  // namespace content
#endif  // CONTENT_BROWSER_SMS_TEST_MOCK_USER_CONSENT_HANDLER_H_