#include "base/callback_list.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/send_tab_to_self/send_tab_to_self_util.h"
#include "chrome/browser/sync/device_info_sync_service_factory.h"
#include "chrome/browser/sync/send_tab_to_self_sync_service_factory.h"
#include "chrome/browser/sync/test/integration/secondary_account_helper.h"
#include "chrome/browser/sync/test/integration/send_tab_to_self_helper.h"
#include "chrome/browser/sync/test/integration/sync_service_impl_harness.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/history/core/browser/history_service.h"
#include "components/send_tab_to_self/send_tab_to_self_bridge.h"
#include "components/send_tab_to_self/send_tab_to_self_model.h"
#include "components/send_tab_to_self/send_tab_to_self_sync_service.h"
#include "components/send_tab_to_self/target_device_info.h"
#include "components/sync_device_info/device_info.h"
#include "components/sync_device_info/device_info_sync_service.h"
#include "components/sync_device_info/local_device_info_provider.h"
#include "content/public/test/browser_test.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"
class TwoClientSendTabToSelfSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest,
AddedUrlFoundWhenBothClientsAlreadySyncing) { … }
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest,
ModelsMatchAfterAddWhenBothClientsAlreadySyncing) { … }
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest, IsActive) { … }
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest,
SendTabToSelfReceivingEnabled) { … }
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest,
SendTabToSelfTargetDeviceInfoList) { … }
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfSyncTest,
MarkOpenedWhenBothClientsAlreadySyncing) { … }
class TwoClientSendTabToSelfWithTransportModeSyncTest
: public TwoClientSendTabToSelfSyncTest { … };
#if !BUILDFLAG(IS_CHROMEOS_ASH)
IN_PROC_BROWSER_TEST_F(TwoClientSendTabToSelfWithTransportModeSyncTest,
SignedInClientCanReceive) { … }
#endif