Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [blame] | 2 | // 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 Drissman | 9269d4ed | 2023-01-07 01:38:06 | [diff] [blame] | 7 | #include "base/functional/bind.h" |
| 8 | #include "base/functional/callback_helpers.h" |
Alex Chau | e1bc1516 | 2019-10-24 10:55:40 | [diff] [blame] | 9 | #include "base/test/mock_callback.h" |
Richard Knoll | a5e43b8 | 2020-01-28 19:49:03 | [diff] [blame] | 10 | #include "chrome/browser/sharing/mock_sharing_message_sender.h" |
Richard Knoll | 367f223 | 2019-11-14 18:11:34 | [diff] [blame] | 11 | #include "chrome/browser/sharing/sharing_fcm_sender.h" |
Hira Mahmood | e16b75f0 | 2024-07-18 17:46:43 | [diff] [blame^] | 12 | #include "components/sharing_message/proto/sharing_message.pb.h" |
Alex Chau | e1bc1516 | 2019-10-24 10:55:40 | [diff] [blame] | 13 | #include "testing/gmock/include/gmock/gmock.h" |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [blame] | 14 | #include "testing/gtest/include/gtest/gtest.h" |
| 15 | |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [blame] | 16 | namespace { |
Himanshu Jaju | 63dbf172 | 2019-10-30 09:55:54 | [diff] [blame] | 17 | constexpr char kTestMessageId[] = "test_message_id"; |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [blame] | 18 | |
Peter Kasting | c11cb0a | 2019-10-07 11:15:22 | [diff] [blame] | 19 | class AckMessageHandlerTest : public testing::Test { |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [blame] | 20 | protected: |
Alex Chau | e1bc1516 | 2019-10-24 10:55:40 | [diff] [blame] | 21 | AckMessageHandlerTest() |
Himanshu Jaju | 63dbf172 | 2019-10-30 09:55:54 | [diff] [blame] | 22 | : ack_message_handler_(&mock_response_callback_helper_) {} |
Alex Chau | 4fded64e | 2019-07-17 16:21:51 | [diff] [
|