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

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

Issue 1415123002: Avoid image resource leaks in frame-related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove redundant #include Created 5 years, 1 month 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 const int kfakeTouchId = 7; 101 const int kfakeTouchId = 7;
102 102
103 class TouchActionTest : public ::testing::Test { 103 class TouchActionTest : public ::testing::Test {
104 public: 104 public:
105 TouchActionTest() 105 TouchActionTest()
106 : m_baseURL("http://www.test.com/") 106 : m_baseURL("http://www.test.com/")
107 { 107 {
108 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL), "touch-action-tests.css"); 108 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL), "touch-action-tests.css");
109 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL), "touch-action-tests.js"); 109 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL), "touch-action-tests.js");
110 URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseU RL), "white-1x1.png");
110 } 111 }
111 112
112 void TearDown() override 113 void TearDown() override
113 { 114 {
114 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); 115 Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
115 } 116 }
116 117
117 protected: 118 protected:
118 void runTouchActionTest(std::string file); 119 void runTouchActionTest(std::string file);
119 void runShadowDOMTest(std::string file); 120 void runShadowDOMTest(std::string file);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 { 339 {
339 runShadowDOMTest("touch-action-shadow-dom.html"); 340 runShadowDOMTest("touch-action-shadow-dom.html");
340 } 341 }
341 342
342 TEST_F(TouchActionTest, Pan) 343 TEST_F(TouchActionTest, Pan)
343 { 344 {
344 runTouchActionTest("touch-action-pan.html"); 345 runTouchActionTest("touch-action-pan.html");
345 } 346 }
346 347
347 } // namespace blink 348 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.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