summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/common/injection_test_dll.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/content/common/injection_test_dll.h b/content/common/injection_test_dll.h
new file mode 100644
index 0000000..cc062ae
--- /dev/null
+++ b/content/common/injection_test_dll.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_INJECTION_TEST_DLL_H_
+#define CONTENT_COMMON_INJECTION_TEST_DLL_H_
+#pragma once
+
+// This file defines the entry points for any DLL that can be loaded into the
+// renderer or plugin process for the purposes of testing. The DLL code must
+// define TEST_INJECTION_DLL so the entry point definitions cause the linker
+// to generate exported functions.
+
+const char kRenderTestCall[] = "RunRendererTests";
+const char kPluginTestCall[] = "RunPluginTests";
+
+extern "C" {
+#ifdef TEST_INJECTION_DLL
+BOOL extern __declspec(dllexport) __cdecl RunRendererTests(int* test_count);
+BOOL extern __declspec(dllexport) __cdecl RunPluginTests(int* test_count);
+#else
+typedef BOOL (__cdecl *RunRendererTests)(int* test_count);
+typedef BOOL (__cdecl *RunPluginTests)(int* test_count);
+#endif
+}
+
+#endif // CONTENT_COMMON_INJECTION_TEST_DLL_H_