Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / common / injection_test_win.h
blob67e8428d851c0a4cf60bc133ac2a5bc542f32e3c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_INJECTION_TEST_WIN_H_
6 #define CONTENT_PUBLIC_COMMON_INJECTION_TEST_WIN_H_
8 // This file defines the entry points for any DLL that can be loaded into the
9 // renderer or plugin process for the purposes of testing. The DLL code must
10 // define TEST_INJECTION_DLL so the entry point definitions cause the linker
11 // to generate exported functions.
13 const char kRenderTestCall[] = "RunRendererTests";
14 const char kPluginTestCall[] = "RunPluginTests";
16 extern "C" {
17 #ifdef TEST_INJECTION_DLL
18 BOOL extern __declspec(dllexport) __cdecl RunRendererTests(int* test_count);
19 BOOL extern __declspec(dllexport) __cdecl RunPluginTests(int* test_count);
20 #else
21 typedef BOOL (__cdecl *RunRendererTests)(int* test_count);
22 typedef BOOL (__cdecl *RunPluginTests)(int* test_count);
23 #endif
26 #endif // CONTENT_PUBLIC_COMMON_INJECTION_TEST_WIN_H_