#include "components/autofill/core/browser/autofill_feedback_data.h"
#include "base/json/json_reader.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/test_autofill_client.h"
#include "components/autofill/core/browser/test_autofill_driver.h"
#include "components/autofill/core/browser/test_browser_autofill_manager.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_test_utils.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace autofill {
namespace {
CreateTestFormField;
constexpr char kExpectedFeedbackDataJSON[] = …;
FormData CreateFeedbackTestFormData() { … }
}
class AutofillFeedbackDataUnitTest : public testing::Test { … };
TEST_F(AutofillFeedbackDataUnitTest, CreatesCompleteReport) { … }
TEST_F(AutofillFeedbackDataUnitTest, IncludesLastAutofillEventLogEntry) { … }
TEST_F(AutofillFeedbackDataUnitTest,
NotIncludeLastAutofillEventIfExceedTimeLimit) { … }
TEST_F(AutofillFeedbackDataUnitTest, IncludesExtraLogs) { … }
}