blob: 31988b131e9cd19abb0e970f332f8a7d71a0dbf9 [file] [log] [blame]
license.botbf09a502008-08-24 00:55:551// Copyright (c) 2006-2008 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.
initial.commit09911bf2008-07-26 23:55:294
5#ifndef CHROME_TEST_INJECTION_TEST_DLL_H__
6#define CHROME_TEST_INJECTION_TEST_DLL_H__
7
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.
12
13const char kRenderTestCall[] = "RunRendererTests";
14const char kPluginTestCall[] = "RunPluginTests";
15
16extern "C" {
17#ifdef TEST_INJECTION_DLL
18BOOL extern __declspec(dllexport) __cdecl RunRendererTests(int* test_count);
19BOOL extern __declspec(dllexport) __cdecl RunPluginTests(int* test_count);
20#else
21typedef BOOL (__cdecl *RunRendererTests)(int* test_count);
22typedef BOOL (__cdecl *RunPluginTests)(int* test_count);
23#endif
24}
25
26#endif // CHROME_TEST_INJECTION_TEST_DLL_H__