chromium/chrome/browser/safe_browsing/extension_telemetry/potential_password_theft_signal_processor_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// This test processes password reuse signal first, and remote host contacted
// signal second within one second. There will be data staged for report.
TEST_F(PotentialPasswordTheftSignalProcessorTest, ProcessTwoSignalsInOrder) {}

// This test processes remote host signal first, and password reuse signal
// second within 1 second. There will be no data staged for report.
TEST_F(PotentialPasswordTheftSignalProcessorTest,
       ProcessTwoSignalsInReverseOrder) {}

// This test processes qualified signals and verifies the proto data.
TEST_F(PotentialPasswordTheftSignalProcessorTest, VerifyProtoData) {}

}  // namespace

}  // namespace safe_browsing