| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/eventsource/EventSourceParser.h" | 5 #include "modules/eventsource/EventSourceParser.h" |
| 6 | 6 |
| 7 #include "modules/eventsource/EventSource.h" | 7 #include "modules/eventsource/EventSource.h" |
| 8 #include "platform/wtf/text/CharacterNames.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "wtf/text/CharacterNames.h" | |
| 10 | 10 |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 struct EventOrReconnectionTimeSetting { | 17 struct EventOrReconnectionTimeSetting { |
| 18 enum Type { | 18 enum Type { |
| 19 kEvent, | 19 kEvent, |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 ASSERT_EQ(1u, events.size()); | 384 ASSERT_EQ(1u, events.size()); |
| 385 ASSERT_EQ(EventOrReconnectionTimeSetting::Type::kEvent, events[0].type); | 385 ASSERT_EQ(EventOrReconnectionTimeSetting::Type::kEvent, events[0].type); |
| 386 EXPECT_EQ("message", events[0].event); | 386 EXPECT_EQ("message", events[0].event); |
| 387 EXPECT_EQ("hello", events[0].data); | 387 EXPECT_EQ("hello", events[0].data); |
| 388 EXPECT_EQ("99", parser->LastEventId()); | 388 EXPECT_EQ("99", parser->LastEventId()); |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace | 391 } // namespace |
| 392 | 392 |
| 393 } // namespace blink | 393 } // namespace blink |
| OLD | NEW |