#include "chrome/browser/safe_browsing/extension_telemetry/potential_password_theft_signal_processor.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/safe_browsing/extension_telemetry/password_reuse_signal.h"
#include "chrome/browser/safe_browsing/extension_telemetry/remote_host_contacted_signal.h"
#include "components/safe_browsing/content/browser/password_protection/password_protection_service.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/common/extension_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace safe_browsing {
namespace {
SignalInfo;
PotentialPasswordTheftInfo;
PasswordReuseEventInfo;
RemoteHostData;
RemoteHostContactedInfo;
LoginReputationClientReusedPasswordAccountType;
constexpr const char* kExtensionId[] = …;
const char* host_urls[] = …;
RemoteHostContactedInfo::ProtocolType kProtocolType = …;
class PotentialPasswordTheftSignalProcessorTest : public ::testing::Test { … };
TEST_F(PotentialPasswordTheftSignalProcessorTest,
EmptyProcessorMapWithNoDataStored) { … }
TEST_F(PotentialPasswordTheftSignalProcessorTest, ProcessTwoSignalsInOrder) { … }
TEST_F(PotentialPasswordTheftSignalProcessorTest,
ProcessTwoSignalsInReverseOrder) { … }
TEST_F(PotentialPasswordTheftSignalProcessorTest, VerifyProtoData) { … }
}
}