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

Unified Diff: third_party/libxml/src/testOOMlib.h

Issue 1193533007: Upgrade to libxml 2.9.2 and libxslt 1.1.28 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove suppressions, have landed in blink now Created 5 years, 6 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/libxml/src/testOOMlib.h
diff --git a/third_party/libxml/src/testOOMlib.h b/third_party/libxml/src/testOOMlib.h
new file mode 100644
index 0000000000000000000000000000000000000000..751999dab6ce58c2c05ed35086fd20cf0cbbc779
--- /dev/null
+++ b/third_party/libxml/src/testOOMlib.h
@@ -0,0 +1,26 @@
+#ifndef TEST_OOM_LIB_H
+#define TEST_OOM_LIB_H
+
+#include <config.h>
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+void* test_malloc (size_t bytes);
+void* test_realloc (void *memory,
+ size_t bytes);
+void test_free (void *memory);
+char* test_strdup (const char *str);
+
+/* returns true on success */
+typedef int (* TestMemoryFunction) (void *data);
+
+/* returns true on success */
+int test_oom_handling (TestMemoryFunction func,
+ void *data);
+
+/* get number of blocks leaked */
+int test_get_malloc_blocks_outstanding (void);
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698