| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "web/TextFinder.h" | 7 #include "web/TextFinder.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 { | 414 { |
| 415 return ensureFallback().getTraceCategoryEnabledFlag(categoryName); | 415 return ensureFallback().getTraceCategoryEnabledFlag(categoryName); |
| 416 } | 416 } |
| 417 | 417 |
| 418 // These two methods allow timers to work correctly. | 418 // These two methods allow timers to work correctly. |
| 419 virtual double monotonicallyIncreasingTime() override | 419 virtual double monotonicallyIncreasingTime() override |
| 420 { | 420 { |
| 421 return ensureFallback().monotonicallyIncreasingTime(); | 421 return ensureFallback().monotonicallyIncreasingTime(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 virtual void setSharedTimerFireInterval(double interval) override | |
| 425 { | |
| 426 ensureFallback().setSharedTimerFireInterval(interval); | |
| 427 } | |
| 428 | |
| 429 virtual WebThread* currentThread() override { return ensureFallback().cu
rrentThread(); } | 424 virtual WebThread* currentThread() override { return ensureFallback().cu
rrentThread(); } |
| 430 virtual WebUnitTestSupport* unitTestSupport() override { return ensureFa
llback().unitTestSupport(); } | 425 virtual WebUnitTestSupport* unitTestSupport() override { return ensureFa
llback().unitTestSupport(); } |
| 431 virtual WebString defaultLocale() override { return ensureFallback().def
aultLocale(); } | 426 virtual WebString defaultLocale() override { return ensureFallback().def
aultLocale(); } |
| 432 virtual WebCompositorSupport* compositorSupport() override { return ensu
reFallback().compositorSupport(); } | 427 virtual WebCompositorSupport* compositorSupport() override { return ensu
reFallback().compositorSupport(); } |
| 433 | 428 |
| 434 double m_timeCounter; | 429 double m_timeCounter; |
| 435 Platform* m_fallbackPlatform; | 430 Platform* m_fallbackPlatform; |
| 436 }; | 431 }; |
| 437 | 432 |
| 438 TimeProxyPlatform m_proxyTimePlatform; | 433 TimeProxyPlatform m_proxyTimePlatform; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 // There will be only one iteration before timeout, because increment | 467 // There will be only one iteration before timeout, because increment |
| 473 // of the TimeProxyPlatform timer is greater than timeout threshold. | 468 // of the TimeProxyPlatform timer is greater than timeout threshold. |
| 474 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); | 469 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); |
| 475 while (textFinder().scopingInProgress()) | 470 while (textFinder().scopingInProgress()) |
| 476 runPendingTasks(); | 471 runPendingTasks(); |
| 477 | 472 |
| 478 EXPECT_EQ(4, textFinder().totalMatchCount()); | 473 EXPECT_EQ(4, textFinder().totalMatchCount()); |
| 479 } | 474 } |
| 480 | 475 |
| 481 } // namespace | 476 } // namespace |
| OLD | NEW |