#ifndef EXTENSIONS_BROWSER_TEST_EVENT_ROUTER_H_
#define EXTENSIONS_BROWSER_TEST_EVENT_ROUTER_H_
#include <map>
#include <memory>
#include <string>
#include <type_traits>
#include "base/functional/bind.h"
#include "base/observer_list.h"
#include "base/scoped_observation_traits.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/event_router_factory.h"
#include "extensions/common/extension_id.h"
namespace extensions {
class TestEventRouter : public EventRouter { … };
template <typename T = TestEventRouter>
T* CreateAndUseTestEventRouter(content::BrowserContext* context) { … }
}
namespace base {
template <>
struct ScopedObservationTraits<extensions::TestEventRouter,
extensions::TestEventRouter::EventObserver> { … };
}
#endif