| Index: extensions/common/event_filter_unittest.cc
|
| diff --git a/extensions/common/event_filter_unittest.cc b/extensions/common/event_filter_unittest.cc
|
| index b9b34a37fbed7ad79fe024ed33ca9d88cca9f5fa..9cbfff7fb659a5760059d8d51b0333d141a054f7 100644
|
| --- a/extensions/common/event_filter_unittest.cc
|
| +++ b/extensions/common/event_filter_unittest.cc
|
| @@ -24,10 +24,10 @@ namespace extensions {
|
| class EventFilterUnittest : public testing::Test {
|
| public:
|
| EventFilterUnittest() {
|
| - google_event_.SetURL(GURL("http://google.com"));
|
| - yahoo_event_.SetURL(GURL("http://yahoo.com"));
|
| - random_url_event_.SetURL(GURL("http://www.something-else.com"));
|
| - empty_url_event_.SetURL(GURL());
|
| + google_event_.url = GURL("http://google.com");
|
| + yahoo_event_.url = GURL("http://yahoo.com");
|
| + random_url_event_.url = GURL("http://www.something-else.com");
|
| + empty_url_event_.url = GURL();
|
| }
|
|
|
| protected:
|
| @@ -100,7 +100,7 @@ TEST_F(EventFilterUnittest, DoMatchAgainstMatchersForSameEvent) {
|
|
|
| TEST_F(EventFilterUnittest, DontMatchUnlessMatcherMatches) {
|
| EventFilteringInfo info;
|
| - info.SetURL(GURL("http://www.yahoo.com"));
|
| + info.url = GURL("http://www.yahoo.com");
|
| event_filter_.AddEventMatcher("event1", HostSuffixMatcher("google.com"));
|
| std::set<int> matches = event_filter_.MatchEvent(
|
| "event1", info, MSG_ROUTING_NONE);
|
| @@ -128,7 +128,7 @@ TEST_F(EventFilterUnittest, MultipleEventMatches) {
|
|
|
| TEST_F(EventFilterUnittest, TestURLMatching) {
|
| EventFilteringInfo info;
|
| - info.SetURL(GURL("http://www.google.com"));
|
| + info.url = GURL("http://www.google.com");
|
| int id = event_filter_.AddEventMatcher("event1",
|
| HostSuffixMatcher("google.com"));
|
| std::set<int> matches = event_filter_.MatchEvent(
|
|
|