#include "chrome/browser/sharing/shared_clipboard/shared_clipboard_message_handler_desktop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/mock_callback.h"
#include "base/uuid.h"
#include "chrome/browser/sharing/shared_clipboard/shared_clipboard_test_base.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/testing_profile.h"
#include "components/sharing_message/fake_device_info.h"
#include "components/sharing_message/mock_sharing_device_source.h"
#include "components/sharing_message/mock_sharing_service.h"
#include "components/sharing_message/proto/shared_clipboard_message.pb.h"
#include "components/sharing_message/sharing_constants.h"
#include "components/sharing_message/sharing_target_device_info.h"
#include "components/sync/protocol/sync_enums.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/message_center/public/cpp/notification.h"
namespace {
const char kText[] = …;
const char kEmptyDeviceName[] = …;
const char kDeviceNameInDeviceInfo[] = …;
const char16_t kDeviceNameInDeviceInfo16[] = …;
const char kDeviceNameInMessage[] = …;
const char16_t kDeviceNameInMessage16[] = …;
class SharedClipboardMessageHandlerTest : public SharedClipboardTestBase { … };
}
TEST_F(SharedClipboardMessageHandlerTest, NotificationWithoutDeviceName) { … }
TEST_F(SharedClipboardMessageHandlerTest,
NotificationWithDeviceNameFromDeviceInfo) { … }
TEST_F(SharedClipboardMessageHandlerTest,
NotificationWithDeviceNameFromMessage) { … }