Print Preview: Refactoring print/cancel button and print summary.
[chromium-blink-merge.git] / content / common / injection_test_dll.h
blobcc062aeb5972256b9ea713baf55bd0f4a21a1183
1 // Copyright (c) 2011 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_COMMON_INJECTION_TEST_DLL_H_
6 #define CONTENT_COMMON_INJECTION_TEST_DLL_H_
7 #pragma once
9 // This file defines the entry points for any DLL that can be loaded into the
10 // renderer or plugin process for the purposes of testing. The DLL code must
11 // define TEST_INJECTION_DLL so the entry point definitions cause the linker
12 // to generate exported functions.
14 const char kRenderTestCall[] = "RunRendererTests";
15 const char kPluginTestCall[] = "RunPluginTests";
17 extern "C" {
18 #ifdef TEST_INJECTION_DLL
19 BOOL extern __declspec(dllexport) __cdecl RunRendererTests(int* test_count);
20 BOOL extern __declspec(dllexport) __cdecl RunPluginTests(int* test_count);
21 #else
22 typedef BOOL (__cdecl *RunRendererTests)(int* test_count);
23 typedef BOOL (__cdecl *RunPluginTests)(int* test_count);
24 #endif
27 #endif // CONTENT_COMMON_INJECTION_TEST_DLL_H_