#include "extensions/renderer/bindings/event_emitter.h"
#include <string_view>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ref.h"
#include "base/values.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "extensions/renderer/bindings/api_binding_test.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/bindings/api_event_listeners.h"
#include "extensions/renderer/bindings/exception_handler.h"
#include "extensions/renderer/bindings/listener_tracker.h"
#include "extensions/renderer/bindings/test_js_runner.h"
#include "gin/handle.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace extensions {
namespace {
APIEventListeners::ContextOwnerIdGetter CreateContextOwnerIdGetter() { … }
}
class EventEmitterUnittest : public APIBindingTest { … };
TEST_F(EventEmitterUnittest, TestDispatchMethod) { … }
TEST_F(EventEmitterUnittest, ListenersDestroyingContext) { … }
}