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

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

Issue 2653203003: Migrate WTF::Vector::append() to ::push_back() [part 17 of N] (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
index ceed6901167cddb411afdd89cf976b86ff996329..effc1651ebeb5fa13d95fc862c9c2a37de86b6a4 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
@@ -28,8 +28,8 @@ TEST(PresentationRequestTest, TestSingleUrlConstructor) {
TEST(PresentationRequestTest, TestMultipleUrlConstructor) {
V8TestingScope scope;
WTF::Vector<String> urls;
- urls.append("https://example.com");
- urls.append("cast://deadbeef?param=foo");
+ urls.push_back("https://example.com");
+ urls.push_back("cast://deadbeef?param=foo");
PresentationRequest* request = PresentationRequest::create(
scope.getExecutionContext(), urls, scope.getExceptionState());
@@ -46,8 +46,8 @@ TEST(PresentationRequestTest, TestMultipleUrlConstructor) {
TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidURLFamily) {
V8TestingScope scope;
WTF::Vector<String> urls;
- urls.append("https://example.com");
- urls.append("about://deadbeef?param=foo");
+ urls.push_back("https://example.com");
+ urls.push_back("about://deadbeef?param=foo");
PresentationRequest::create(scope.getExecutionContext(), urls,
scope.getExceptionState());
@@ -59,8 +59,8 @@ TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidURLFamily) {
TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidUrl) {
V8TestingScope scope;
WTF::Vector<String> urls;
- urls.append("https://example.com");
- urls.append("");
+ urls.push_back("https://example.com");
+ urls.push_back("");
PresentationRequest::create(scope.getExecutionContext(), urls,
scope.getExceptionState());
@@ -85,8 +85,8 @@ TEST(PresentationRequestTest, TestMultipleUrlConstructorMixedContent) {
SecurityOrigin::createFromString("https://example.test"));
WTF::Vector<String> urls;
- urls.append("http://example.com");
- urls.append("https://example1.com");
+ urls.push_back("http://example.com");
+ urls.push_back("https://example1.com");
PresentationRequest::create(scope.getExecutionContext(), urls,
scope.getExceptionState());
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationAvailabilityTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698