#include "extensions/common/event_filter.h"
#include <memory>
#include <string>
#include <utility>
#include "base/values.h"
#include "extensions/common/event_matcher.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "ipc/ipc_message.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
class EventFilterUnittest : public testing::Test { … };
TEST_F(EventFilterUnittest, NoMatchersMatchIfEmpty) { … }
TEST_F(EventFilterUnittest, AddingEventMatcherDoesntCrash) { … }
TEST_F(EventFilterUnittest,
DontMatchAgainstMatchersForDifferentEvents) { … }
TEST_F(EventFilterUnittest, DoMatchAgainstMatchersForSameEvent) { … }
TEST_F(EventFilterUnittest, DontMatchUnlessMatcherMatches) { … }
TEST_F(EventFilterUnittest, RemovingAnEventMatcherStopsItMatching) { … }
TEST_F(EventFilterUnittest, MultipleEventMatches) { … }
TEST_F(EventFilterUnittest, TestURLMatching) { … }
TEST_F(EventFilterUnittest, TestMultipleURLFiltersMatchOnAny) { … }
TEST_F(EventFilterUnittest, TestStillMatchesAfterRemoval) { … }
TEST_F(EventFilterUnittest, TestMatchesOnlyAgainstPatternsForCorrectEvent) { … }
TEST_F(EventFilterUnittest, TestGetMatcherCountForEvent) { … }
TEST_F(EventFilterUnittest, RemoveEventMatcherReturnsEventName) { … }
TEST_F(EventFilterUnittest, InvalidURLFilterCantBeAdded) { … }
TEST_F(EventFilterUnittest, EmptyListOfURLFiltersMatchesAllURLs) { … }
TEST_F(EventFilterUnittest,
InternalURLMatcherShouldBeEmptyWhenThereAreNoEventMatchers) { … }
TEST_F(EventFilterUnittest, EmptyURLsShouldBeMatchedByEmptyURLFilters) { … }
TEST_F(EventFilterUnittest,
EmptyURLsShouldBeMatchedByEmptyURLFiltersWithAnEmptyItem) { … }
}