#include "components/browser_sync/sync_internals_message_handler.h"
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/gmock_move_support.h"
#include "base/test/task_environment.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/sync/model/type_entities_count.h"
#include "components/sync/service/sync_internals_util.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/test/mock_sync_invalidations_service.h"
#include "components/sync/test/mock_sync_service.h"
#include "components/sync_user_events/fake_user_event_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
kGetAllNodes;
kOnAboutInfoUpdated;
kOnEntityCountsUpdated;
kRequestDataAndRegisterForUpdates;
kRequestStart;
kWriteUserEvent;
_;
ElementsAre;
Return;
namespace browser_sync {
namespace {
const char kChannel[] = …;
MATCHER_P(ValueViewMatchesDict, dict, "") { … }
class MockDelegate : public SyncInternalsMessageHandler::Delegate { … };
class SyncInternalsMessageHandlerTest : public testing::Test { … };
TEST_F(SyncInternalsMessageHandlerTest, AddRemoveObservers) { … }
TEST_F(SyncInternalsMessageHandlerTest, AddRemoveObserversDisableMessages) { … }
TEST_F(SyncInternalsMessageHandlerTest, AddRemoveObserversSyncDisabled) { … }
TEST_F(SyncInternalsMessageHandlerTest, HandleGetAllNodes) { … }
TEST_F(SyncInternalsMessageHandlerTest, SendAboutInfo) { … }
TEST_F(SyncInternalsMessageHandlerTest, WriteUserEvent) { … }
TEST_F(SyncInternalsMessageHandlerTest, WriteUserEventBadParse) { … }
TEST_F(SyncInternalsMessageHandlerTest, WriteUserEventBlank) { … }
TEST_F(SyncInternalsMessageHandlerTest, WriteUserEventZero) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
TEST_F(SyncInternalsMessageHandlerTest, RequestStart) { … }
#endif
}
}