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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 } 2619 }
2620 2620
2621 static void configueCompositingWebView(WebSettings* settings) { 2621 static void configueCompositingWebView(WebSettings* settings) {
2622 settings->setAcceleratedCompositingEnabled(true); 2622 settings->setAcceleratedCompositingEnabled(true);
2623 settings->setPreferCompositingToLCDTextEnabled(true); 2623 settings->setPreferCompositingToLCDTextEnabled(true);
2624 } 2624 }
2625 2625
2626 TEST_P(WebViewTest, ShowPressOnTransformedLink) { 2626 TEST_P(WebViewTest, ShowPressOnTransformedLink) {
2627 std::unique_ptr<FrameTestHelpers::TestWebViewClient> 2627 std::unique_ptr<FrameTestHelpers::TestWebViewClient>
2628 fakeCompositingWebViewClient = 2628 fakeCompositingWebViewClient =
2629 makeUnique<FrameTestHelpers::TestWebViewClient>(); 2629 WTF::makeUnique<FrameTestHelpers::TestWebViewClient>();
2630 FrameTestHelpers::WebViewHelper webViewHelper; 2630 FrameTestHelpers::WebViewHelper webViewHelper;
2631 WebViewImpl* webViewImpl = webViewHelper.initialize( 2631 WebViewImpl* webViewImpl = webViewHelper.initialize(
2632 true, nullptr, fakeCompositingWebViewClient.get(), nullptr, 2632 true, nullptr, fakeCompositingWebViewClient.get(), nullptr,
2633 &configueCompositingWebView); 2633 &configueCompositingWebView);
2634 2634
2635 int pageWidth = 640; 2635 int pageWidth = 640;
2636 int pageHeight = 480; 2636 int pageHeight = 480;
2637 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 2637 webViewImpl->resize(WebSize(pageWidth, pageHeight));
2638 2638
2639 WebURL baseURL = URLTestHelpers::toKURL("http://example.com/"); 2639 WebURL baseURL = URLTestHelpers::toKURL("http://example.com/");
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
4360 .translate(50, 55) 4360 .translate(50, 55)
4361 .scale(1. / 2.f); 4361 .scale(1. / 2.f);
4362 EXPECT_EQ(expectedMatrix, 4362 EXPECT_EQ(expectedMatrix,
4363 webViewImpl->getDeviceEmulationTransformForTesting()); 4363 webViewImpl->getDeviceEmulationTransformForTesting());
4364 // visibleContentRect doesn't change. 4364 // visibleContentRect doesn't change.
4365 EXPECT_EQ(IntRect(50, 55, 50, 75), 4365 EXPECT_EQ(IntRect(50, 55, 50, 75),
4366 *devToolsEmulator->visibleContentRectForPainting()); 4366 *devToolsEmulator->visibleContentRectForPainting());
4367 } 4367 }
4368 4368
4369 } // namespace blink 4369 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/Source/wtf/DequeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698