Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp

Issue 2327993002: [PresentationAPI] Use KURL and WebURL in place of string types. (Closed)
Patch Set: Address imcheng@ comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
index d8f6e39197310d7fb9ff91298e9c1a207cf981ae..a41ce2bca7eb8790e7e7129342bfa2ee6982ae5f 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp
@@ -9,6 +9,7 @@
#include "core/frame/LocalFrame.h"
#include "core/testing/DummyPageHolder.h"
#include "modules/presentation/PresentationConnectionList.h"
+#include "platform/testing/URLTestHelpers.h"
#include "public/platform/modules/presentation/WebPresentationConnectionClient.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -34,7 +35,7 @@ public:
class TestWebPresentationConnectionClient : public WebPresentationConnectionClient {
public:
WebString getId() override { return WebString::fromUTF8("id"); }
- WebString getUrl() override { return WebString::fromUTF8("url"); }
+ WebURL getUrl() override { return URLTestHelpers::toKURL("http://www.example.com"); }
};
class PresentationReceiverTest : public ::testing::Test {

Powered by Google App Engine
This is Rietveld 408576698