#include "components/segmentation_platform/internal/signals/url_signal_handler.h"
#include "base/test/task_environment.h"
#include "components/segmentation_platform/internal/database/mock_ukm_database.h"
#include "components/segmentation_platform/internal/database/ukm_database.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace segmentation_platform {
_;
AnyNumber;
Return;
ReturnRef;
void RunFoundCallback(const GURL& url,
UrlSignalHandler::FindCallback callback) { … }
void RunNotFoundCallback(const GURL& url,
UrlSignalHandler::FindCallback callback) { … }
class MockHistoryDelegate : public UrlSignalHandler::HistoryDelegate { … };
class UrlSignalHandlerTest : public testing::Test { … };
TEST_F(UrlSignalHandlerTest, TestNoHistoryDelegate) { … }
TEST_F(UrlSignalHandlerTest, TestFastCheckSuccess) { … }
TEST_F(UrlSignalHandlerTest, TestMultipleDelegates) { … }
TEST_F(UrlSignalHandlerTest, FindInHistory) { … }
TEST_F(UrlSignalHandlerTest, Observation) { … }
}