| Index: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp | 
| diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp | 
| index 4c4694066ba5c97f8bbf0ceffec8f25a87ee7931..56494e6b29530a00e03689244183105ec7898bce 100644 | 
| --- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp | 
| +++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannelTest.cpp | 
| @@ -10,10 +10,14 @@ | 
| #include "core/testing/DummyPageHolder.h" | 
| #include "modules/websockets/DocumentWebSocketChannel.h" | 
| #include "modules/websockets/WebSocketChannelClient.h" | 
| -#include "modules/websockets/WebSocketHandle.h" | 
| -#include "modules/websockets/WebSocketHandleClient.h" | 
| #include "platform/heap/Handle.h" | 
| #include "platform/weborigin/KURL.h" | 
| +#include "public/platform/WebSecurityOrigin.h" | 
| +#include "public/platform/WebString.h" | 
| +#include "public/platform/WebURL.h" | 
| +#include "public/platform/WebVector.h" | 
| +#include "public/platform/modules/websockets/WebSocketHandle.h" | 
| +#include "public/platform/modules/websockets/WebSocketHandleClient.h" | 
| #include "testing/gmock/include/gmock/gmock.h" | 
| #include "testing/gtest/include/gtest/gtest.h" | 
| #include "wtf/PtrUtil.h" | 
| @@ -76,10 +80,10 @@ public: | 
|  | 
| ~MockWebSocketHandle() override { } | 
|  | 
| -    MOCK_METHOD6(connect, void(const KURL&, const Vector<String>&, SecurityOrigin*, const KURL&, const String&, WebSocketHandleClient*)); | 
| +    MOCK_METHOD6(connect, void(const WebURL&, const WebVector<WebString>&, const WebSecurityOrigin&, const WebURL&, const WebString&, WebSocketHandleClient*)); | 
| MOCK_METHOD4(send, void(bool, WebSocketHandle::MessageType, const char*, size_t)); | 
| MOCK_METHOD1(flowControl, void(int64_t)); | 
| -    MOCK_METHOD2(close, void(unsigned short, const String&)); | 
| +    MOCK_METHOD2(close, void(unsigned short, const WebString&)); | 
| }; | 
|  | 
| class DocumentWebSocketChannelTest : public ::testing::Test { | 
| @@ -128,12 +132,12 @@ public: | 
| { | 
| { | 
| InSequence s; | 
| -            EXPECT_CALL(*handle(), connect(KURL(KURL(), "ws://localhost/"), _, _, _, _, handleClient())); | 
| +            EXPECT_CALL(*handle(), connect(WebURL(KURL(KURL(), "ws://localhost/")), _, _, _, _, handleClient())); | 
| EXPECT_CALL(*handle(), flowControl(65536)); | 
| EXPECT_CALL(*channelClient(), didConnect(String("a"), String("b"))); | 
| } | 
| EXPECT_TRUE(channel()->connect(KURL(KURL(), "ws://localhost/"), "x")); | 
| -        handleClient()->didConnect(handle(), String("a"), String("b")); | 
| +        handleClient()->didConnect(handle(), WebString("a"), WebString("b")); | 
| ::testing::Mock::VerifyAndClearExpectations(this); | 
| } | 
|  | 
| @@ -154,25 +158,25 @@ MATCHER_P2(MemEq, p, len, | 
| return memcmp(arg, p, len) == 0; | 
| } | 
|  | 
| -MATCHER_P(KURLEq, urlString, | 
| +MATCHER_P(WebURLEq, urlString, | 
| std::string(negation ? "doesn't equal" : "equals") | 
| + " to \"" + urlString + "\"" | 
| ) | 
| { | 
| -    KURL url(KURL(), urlString); | 
| -    *result_listener << "where the url is \"" << arg.getString().utf8().data() << "\""; | 
| +    WebURL url(KURL(KURL(), urlString)); | 
| +    *result_listener << "where the url is \"" << arg.string().utf8() << "\""; | 
| return arg == url; | 
| } | 
|  | 
| TEST_F(DocumentWebSocketChannelTest, connectSuccess) | 
| { | 
| -    Vector<String> protocols; | 
| -    RefPtr<SecurityOrigin> origin; | 
| +    WebVector<WebString> protocols; | 
| +    WebSecurityOrigin origin; | 
|  | 
| Checkpoint checkpoint; | 
| { | 
| InSequence s; | 
| -        EXPECT_CALL(*handle(), connect(KURLEq("ws://localhost/"), _, _, KURLEq("http://example.com/"), _, handleClient())).WillOnce(DoAll( | 
| +        EXPECT_CALL(*handle(), connect(WebURLEq("ws://localhost/"), _, _, WebURLEq("http://example.com/"), _, handleClient())).WillOnce(DoAll( | 
| SaveArg<1>(&protocols), | 
| SaveArg<2>(&origin))); | 
| EXPECT_CALL(*handle(), flowControl(65536)); | 
| @@ -192,10 +196,10 @@ TEST_F(DocumentWebSocketChannelTest, connectSuccess) | 
| EXPECT_EQ(1U, protocols.size()); | 
| EXPECT_STREQ("x", protocols[0].utf8().data()); | 
|  | 
| -    EXPECT_STREQ("http://example.com", origin->toString().utf8().data()); | 
| +    EXPECT_STREQ("http://example.com", origin.toString().utf8().data()); | 
|  | 
| checkpoint.Call(1); | 
| -    handleClient()->didConnect(handle(), String("a"), String("b")); | 
| +    handleClient()->didConnect(handle(), WebString("a"), WebString("b")); | 
| } | 
|  | 
| TEST_F(DocumentWebSocketChannelTest, sendText) | 
| @@ -639,7 +643,7 @@ TEST_F(DocumentWebSocketChannelTest, closeFromBrowser) | 
| EXPECT_CALL(*channelClient(), didStartClosingHandshake()); | 
| EXPECT_CALL(checkpoint, Call(1)); | 
|  | 
| -        EXPECT_CALL(*handle(), close(WebSocketChannel::CloseEventCodeNormalClosure, String("close reason"))); | 
| +        EXPECT_CALL(*handle(), close(WebSocketChannel::CloseEventCodeNormalClosure, WebString("close reason"))); | 
| EXPECT_CALL(checkpoint, Call(2)); | 
|  | 
| EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHandshakeComplete, WebSocketChannel::CloseEventCodeNormalClosure, String("close reason"))); | 
| @@ -665,7 +669,7 @@ TEST_F(DocumentWebSocketChannelTest, closeFromWebSocket) | 
| { | 
| InSequence s; | 
|  | 
| -        EXPECT_CALL(*handle(), close(WebSocketChannel::CloseEventCodeNormalClosure, String("close reason"))); | 
| +        EXPECT_CALL(*handle(), close(WebSocketChannel::CloseEventCodeNormalClosure, WebString("close reason"))); | 
| EXPECT_CALL(checkpoint, Call(1)); | 
|  | 
| EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHandshakeComplete, WebSocketChannel::CloseEventCodeNormalClosure, String("close reason"))); | 
|  |