blob: 496a264ba91f16785b1648a7e7f0559764a0600a [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2019 The Chromium Authors
Alex Chau4fded64e2019-07-17 16:21:512// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/sharing/ack_message_handler.h"
6
Avi Drissman9269d4ed2023-01-07 01:38:067#include "base/functional/bind.h"
8#include "base/functional/callback_helpers.h"
Alex Chaue1bc15162019-10-24 10:55:409#include "base/test/mock_callback.h"
Richard Knolla5e43b82020-01-28 19:49:0310#include "chrome/browser/sharing/mock_sharing_message_sender.h"
Richard Knoll367f2232019-11-14 18:11:3411#include "chrome/browser/sharing/sharing_fcm_sender.h"
Hira Mahmoode16b75f02024-07-18 17:46:4312#include "components/sharing_message/proto/sharing_message.pb.h"
Alex Chaue1bc15162019-10-24 10:55:4013#include "testing/gmock/include/gmock/gmock.h"
Alex Chau4fded64e2019-07-17 16:21:5114#include "testing/gtest/include/gtest/gtest.h"
15
Alex Chau4fded64e2019-07-17 16:21:5116namespace {
Himanshu Jaju63dbf1722019-10-30 09:55:5417constexpr char kTestMessageId[] = "test_message_id";
Alex Chau4fded64e2019-07-17 16:21:5118
Peter Kastingc11cb0a2019-10-07 11:15:2219class AckMessageHandlerTest : public testing::Test {
Alex Chau4fded64e2019-07-17 16:21:5120 protected:
Alex Chaue1bc15162019-10-24 10:55:4021 AckMessageHandlerTest()
Himanshu Jaju63dbf1722019-10-30 09:55:5422 : ack_message_handler_(&mock_response_callback_helper_) {}
Alex Chau4fded64e2019-07-17 16:21:51