#include "components/user_annotations/user_annotations_service.h"
#include <memory>
#include "base/files/scoped_temp_dir.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/protobuf_matchers.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/autofill/core/common/form_data.h"
#include "components/optimization_guide/core/mock_optimization_guide_model_executor.h"
#include "components/optimization_guide/proto/features/common_quality_data.pb.h"
#include "components/user_annotations/user_annotations_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace user_annotations {
namespace {
EqualsProto;
_;
An;
class UserAnnotationsServiceTest : public testing::Test,
public testing::WithParamInterface<bool> { … };
TEST_P(UserAnnotationsServiceTest, RetrieveAllEntriesNoDB) { … }
TEST_P(UserAnnotationsServiceTest, RetrieveAllEntriesWithInsert) { … }
TEST_F(UserAnnotationsServiceTest, ExecuteFailed) { … }
TEST_F(UserAnnotationsServiceTest, UnexpectedResponseType) { … }
INSTANTIATE_TEST_SUITE_P(…);
class UserAnnotationsServiceReplaceAnnotationsTest
: public UserAnnotationsServiceTest { … };
TEST_P(UserAnnotationsServiceReplaceAnnotationsTest,
RetrieveAllEntriesWithInsertShouldReplace) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}