#include "components/drive/drive_notification_manager.h"
#include <memory>
#include "base/strings/strcat.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_mock_time_task_runner.h"
#include "components/drive/drive_notification_observer.h"
#include "components/drive/features.h"
#include "components/invalidation/impl/fake_invalidation_service.h"
#include "components/invalidation/public/invalidation.h"
#include "components/invalidation/public/invalidation_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace drive {
namespace {
const invalidation::Topic kDefaultCorpusTopic = …;
enum NotificationSource { … };
struct ShutdownHelper { … };
class FakeDriveNotificationObserver : public DriveNotificationObserver { … };
invalidation::Topic CreateTeamDriveInvalidationTopic(
const std::string& team_drive_id) { … }
}
class DriveNotificationManagerTest : public testing::Test { … };
TEST_F(DriveNotificationManagerTest, RegisterTeamDrives) { … }
TEST_F(DriveNotificationManagerTest, TestBatchInvalidation) { … }
TEST_F(DriveNotificationManagerTest, UnregisterOnNoObservers) { … }
class DriveNotificationManagerPollingTest
: public DriveNotificationManagerTest { … };
TEST_F(DriveNotificationManagerPollingTest, OverridePollingInterval) { … }
}