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

Unified Diff: base/test/malloc_wrapper.cc

Issue 1064793002: Fix OutOfMemoryDeathTest.ViaSharedLibraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed CL to avoid target enumeration on unsupported OS Created 5 years, 8 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
« no previous file with comments | « base/test/malloc_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/malloc_wrapper.cc
diff --git a/ui/compositor/reflector.cc b/base/test/malloc_wrapper.cc
similarity index 61%
copy from ui/compositor/reflector.cc
copy to base/test/malloc_wrapper.cc
index 31dcdaef6105459ab2c82fa60cc5a1b6d03703f2..eb280a3eeea52f49e534c7c5e3f6f7a40e80a750 100644
--- a/ui/compositor/reflector.cc
+++ b/base/test/malloc_wrapper.cc
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/compositor/reflector.h"
+#include "malloc_wrapper.h"
-namespace ui {
+#include <stdlib.h>
-Reflector::~Reflector() {
+void* MallocWrapper(size_t size) {
+ return malloc(size);
}
-
-} // namespace ui
« no previous file with comments | « base/test/malloc_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698