#include "extensions/browser/test_event_router.h"
#include "base/check_op.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/common/extension_id.h"
namespace extensions {
TestEventRouter::EventObserver::~EventObserver() = default;
void TestEventRouter::EventObserver::OnDispatchEventToExtension(
const ExtensionId& extension_id,
const Event& event) { … }
void TestEventRouter::EventObserver::OnBroadcastEvent(const Event& event) { … }
TestEventRouter::TestEventRouter(content::BrowserContext* context)
: … { … }
TestEventRouter::~TestEventRouter() = default;
int TestEventRouter::GetEventCount(std::string event_name) const { … }
void TestEventRouter::AddEventObserver(EventObserver* obs) { … }
void TestEventRouter::RemoveEventObserver(EventObserver* obs) { … }
void TestEventRouter::BroadcastEvent(std::unique_ptr<Event> event) { … }
void TestEventRouter::DispatchEventToExtension(const ExtensionId& extension_id,
std::unique_ptr<Event> event) { … }
void TestEventRouter::IncrementEventCount(const std::string& event_name) { … }
}