#include "chrome/browser/safe_browsing/test_extension_event_observer.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.h"
#include "chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.h"
#include "chrome/common/extensions/api/safe_browsing_private.h"
#include "testing/gtest/include/gtest/gtest.h"
OnSecurityInterstitialShown;
OnSecurityInterstitialProceeded;
OnPolicySpecifiedPasswordReuseDetected;
OnPolicySpecifiedPasswordChanged;
OnDangerousDownloadOpened;
namespace safe_browsing {
TestExtensionEventObserver::TestExtensionEventObserver(
extensions::TestEventRouter* event_router) { … }
base::Value TestExtensionEventObserver::PassEventArgs() { … }
void TestExtensionEventObserver::OnBroadcastEvent(
const extensions::Event& event) { … }
void TestExtensionEventObserver::VerifyLatestSecurityInterstitialEvent(
const std::string& expected_event_name,
const GURL& expected_page_url,
const std::string& expected_reason,
const std::string& expected_username,
int expected_net_error_code) { … }
std::unique_ptr<KeyedService> BuildSafeBrowsingPrivateEventRouter(
content::BrowserContext* context) { … }
std::unique_ptr<KeyedService> BuildRealtimeReportingClient(
content::BrowserContext* context) { … }
}