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

Side by Side Diff: third_party/WebKit/Source/web/tests/ViewportTest.cpp

Issue 2612903007: Migrate WTF::Vector::append() to ::push_back() [part 15 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 ->matchesHeuristicsForGpuRasterizationForTesting()); 3022 ->matchesHeuristicsForGpuRasterizationForTesting());
3023 } 3023 }
3024 3024
3025 class ConsoleMessageWebFrameClient 3025 class ConsoleMessageWebFrameClient
3026 : public FrameTestHelpers::TestWebFrameClient { 3026 : public FrameTestHelpers::TestWebFrameClient {
3027 public: 3027 public:
3028 virtual void didAddMessageToConsole(const WebConsoleMessage& msg, 3028 virtual void didAddMessageToConsole(const WebConsoleMessage& msg,
3029 const WebString& sourceName, 3029 const WebString& sourceName,
3030 unsigned sourceLine, 3030 unsigned sourceLine,
3031 const WebString& stackTrace) { 3031 const WebString& stackTrace) {
3032 messages.append(msg); 3032 messages.push_back(msg);
3033 } 3033 }
3034 3034
3035 Vector<WebConsoleMessage> messages; 3035 Vector<WebConsoleMessage> messages;
3036 }; 3036 };
3037 3037
3038 TEST_F(ViewportTest, viewportWarnings1) { 3038 TEST_F(ViewportTest, viewportWarnings1) {
3039 ConsoleMessageWebFrameClient webFrameClient; 3039 ConsoleMessageWebFrameClient webFrameClient;
3040 3040
3041 registerMockedHttpURLLoad("viewport/viewport-warnings-1.html"); 3041 registerMockedHttpURLLoad("viewport/viewport-warnings-1.html");
3042 3042
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
3206 m_baseURL + "viewport/viewport-warnings-7.html", true, &webFrameClient, 3206 m_baseURL + "viewport/viewport-warnings-7.html", true, &webFrameClient,
3207 nullptr, nullptr, setViewportSettings); 3207 nullptr, nullptr, setViewportSettings);
3208 3208
3209 Page* page = webViewHelper.webView()->page(); 3209 Page* page = webViewHelper.webView()->page();
3210 runViewportTest(page, 320, 352); 3210 runViewportTest(page, 320, 352);
3211 3211
3212 EXPECT_EQ(0U, webFrameClient.messages.size()); 3212 EXPECT_EQ(0U, webFrameClient.messages.size());
3213 } 3213 }
3214 3214
3215 } // namespace blink 3215 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/RootScrollerTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698