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

Side by Side Diff: Source/web/tests/LinkHighlightTest.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/KeyboardTest.cpp ('k') | Source/web/tests/LocaleICUTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "web/WebInputEventConversion.h" 43 #include "web/WebInputEventConversion.h"
44 #include "web/WebLocalFrameImpl.h" 44 #include "web/WebLocalFrameImpl.h"
45 #include "web/WebViewImpl.h" 45 #include "web/WebViewImpl.h"
46 #include "web/tests/FrameTestHelpers.h" 46 #include "web/tests/FrameTestHelpers.h"
47 #include "web/tests/URLTestHelpers.h" 47 #include "web/tests/URLTestHelpers.h"
48 #include "wtf/PassOwnPtr.h" 48 #include "wtf/PassOwnPtr.h"
49 #include <gtest/gtest.h> 49 #include <gtest/gtest.h>
50 50
51 51
52 using namespace blink; 52 using namespace blink;
53 using namespace WebCore; 53 using namespace blink;
54 54
55 namespace { 55 namespace {
56 56
57 TEST(LinkHighlightTest, verifyWebViewImplIntegration) 57 TEST(LinkHighlightTest, verifyWebViewImplIntegration)
58 { 58 {
59 const std::string baseURL("http://www.test.com/"); 59 const std::string baseURL("http://www.test.com/");
60 const std::string fileName("test_touch_link_highlight.html"); 60 const std::string fileName("test_touch_link_highlight.html");
61 61
62 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("test_touch_link_highlight.html")); 62 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(baseURL.c_s tr()), WebString::fromUTF8("test_touch_link_highlight.html"));
63 FrameTestHelpers::WebViewHelper webViewHelper; 63 FrameTestHelpers::WebViewHelper webViewHelper;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent .y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data. tap.height); 203 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent .y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data. tap.height);
204 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo dTargets, highlightNodes); 204 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo dTargets, highlightNodes);
205 205
206 webViewImpl->enableTapHighlights(highlightNodes); 206 webViewImpl->enableTapHighlights(highlightNodes);
207 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); 207 EXPECT_EQ(2U, webViewImpl->numLinkHighlights());
208 208
209 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); 209 Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
210 } 210 }
211 211
212 } // namespace 212 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/KeyboardTest.cpp ('k') | Source/web/tests/LocaleICUTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698