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

Unified Diff: third_party/WebKit/Source/platform/testing/RunAllTests.cpp

Issue 1787973002: Replace blink::WebDiscardableMemory with base::DiscardableMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use StringPiece::as_string Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/testing/RunAllTests.cpp
diff --git a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
index 15791e547834e88d1d8e6b46e4d4c178461f709c..a632580b366aae65e2e6e437321baf145ac810f4 100644
--- a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
+++ b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
@@ -28,6 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "base/memory/discardable_memory_allocator.h"
+#include "base/test/test_discardable_memory_allocator.h"
#include "base/test/test_io_thread.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/test/scoped_ipc_support.h"
@@ -74,6 +76,9 @@ int main(int argc, char** argv)
{
base::CommandLine::Init(argc, argv);
+ base::TestDiscardableMemoryAllocator discardableMemoryAllocator;
+ base::DiscardableMemoryAllocator::SetInstance(&discardableMemoryAllocator);
+
OwnPtr<DummyPlatform> platform = adoptPtr(new DummyPlatform);
blink::Platform::setCurrentPlatformForTesting(platform.get());

Powered by Google App Engine
This is Rietveld 408576698