| Index: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| diff --git a/third_party/WebKit/Source/platform/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| similarity index 91%
|
| rename from third_party/WebKit/Source/platform/TestingPlatformSupport.cpp
|
| rename to third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| index fcb4dbb73b56feb99c3894e35c66a3870fbe5dd0..8939238558d0126bfd7e67c947a3121292177429 100644
|
| --- a/third_party/WebKit/Source/platform/TestingPlatformSupport.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| @@ -30,7 +30,7 @@
|
|
|
| #include "config.h"
|
|
|
| -#include "platform/TestingPlatformSupport.h"
|
| +#include "platform/testing/TestingPlatformSupport.h"
|
|
|
| namespace blink {
|
|
|
| @@ -69,6 +69,11 @@ WebMemoryAllocatorDump* TestingDiscardableMemory::createMemoryAllocatorDump(cons
|
| return nullptr;
|
| }
|
|
|
| +TestingPlatformSupport::TestingPlatformSupport()
|
| + : TestingPlatformSupport(TestingPlatformSupport::Config())
|
| +{
|
| +}
|
| +
|
| TestingPlatformSupport::TestingPlatformSupport(const Config& config)
|
| : m_config(config)
|
| , m_oldPlatform(Platform::current())
|
| @@ -107,4 +112,9 @@ WebCompositorSupport* TestingPlatformSupport::compositorSupport()
|
| return m_config.compositorSupport;
|
| }
|
|
|
| +WebThread* TestingPlatformSupport::currentThread()
|
| +{
|
| + return m_oldPlatform ? m_oldPlatform->currentThread() : nullptr;
|
| +}
|
| +
|
| } // namespace blink
|
|
|