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

Unified Diff: tests/irt_ext/mem_calls.h

Issue 511253005: Added irt extension support for supplying the nacl_irt_memory interface. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Moved size declaration down Created 6 years, 4 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 | « tests/irt_ext/libc/mem_tests.c ('k') | tests/irt_ext/mem_calls.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/irt_ext/mem_calls.h
diff --git a/tests/irt_ext/mem_calls.h b/tests/irt_ext/mem_calls.h
new file mode 100644
index 0000000000000000000000000000000000000000..b5423c8e4a4d54cc2118129cce5c6fb9a2bc272f
--- /dev/null
+++ b/tests/irt_ext/mem_calls.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2014 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/*
+ * This module is intended to keep track of memory calls that have been hooked
+ * into a standard library. Because the IRT has a full implementation of
+ * all the memory related calls (mmap, munmap, mprotect...etc.) this module
+ * simply passes the actual functionality to the IRT.
+ */
+
+#ifndef NATIVE_CLIENT_TESTS_IRT_EXT_MEM_CALLS_H
+#define NATIVE_CLIENT_TESTS_IRT_EXT_MEM_CALLS_H
+
+struct mem_calls_environment {
+ int num_mmap_calls;
+ int num_munmap_calls;
+ int num_mprotect_calls;
+};
+
+void init_mem_calls_module(void);
+
+void init_mem_calls_environment(struct mem_calls_environment *env);
+
+void activate_mem_calls_env(struct mem_calls_environment *env);
+void deactivate_mem_calls_env(void);
+
+#endif /* NATIVE_CLIENT_TESTS_IRT_EXT_MEM_CALLS_H */
« no previous file with comments | « tests/irt_ext/libc/mem_tests.c ('k') | tests/irt_ext/mem_calls.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698