diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 22:43:46 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 22:43:46 +0000 |
commit | 241632237dc0cd1343f9c8bafc92dd28252fb79f (patch) | |
tree | ac21f2e8a787d04863589642a0f37923c2c7c31a | |
parent | 9d3b06a79975a351317364dc526f4a102d679a1f (diff) | |
download | chromium_src-241632237dc0cd1343f9c8bafc92dd28252fb79f.zip chromium_src-241632237dc0cd1343f9c8bafc92dd28252fb79f.tar.gz chromium_src-241632237dc0cd1343f9c8bafc92dd28252fb79f.tar.bz2 |
Move injection_test_dll.h to content\common to get rid of a dependency on chrome in plugin.
TBR=nsylvain
Review URL: http://codereview.chromium.org/6695002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78112 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/chrome_tests.gypi | 2 | ||||
-rw-r--r-- | chrome/nacl/nacl_main.cc | 1 | ||||
-rw-r--r-- | chrome/plugin/plugin_main.cc | 4 | ||||
-rw-r--r-- | chrome/renderer/renderer_main_platform_delegate_win.cc | 2 | ||||
-rw-r--r-- | chrome/test/security_tests/security_tests.cc | 2 | ||||
-rw-r--r-- | content/common/injection_test_dll.h (renamed from chrome/test/injection_test_dll.h) | 8 |
6 files changed, 9 insertions, 10 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index fcf5ba0..b6b26cab 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -3384,10 +3384,10 @@ '..', ], 'sources': [ - 'test/injection_test_dll.h', 'test/security_tests/ipc_security_tests.cc', 'test/security_tests/ipc_security_tests.h', 'test/security_tests/security_tests.cc', + '../content/common/injection_test_dll.h', '../sandbox/tests/validation_tests/commands.cc', '../sandbox/tests/validation_tests/commands.h', ], diff --git a/chrome/nacl/nacl_main.cc b/chrome/nacl/nacl_main.cc index 4895b26..cec7168 100644 --- a/chrome/nacl/nacl_main.cc +++ b/chrome/nacl/nacl_main.cc @@ -25,7 +25,6 @@ #if defined(OS_WIN) #include "chrome/nacl/broker_thread.h" -#include "chrome/test/injection_test_dll.h" #include "sandbox/src/sandbox.h" #endif diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc index 02eb35d..92cf96f 100644 --- a/chrome/plugin/plugin_main.cc +++ b/chrome/plugin/plugin_main.cc @@ -24,7 +24,7 @@ #include "ui/base/system_monitor/system_monitor.h" #if defined(OS_WIN) -#include "chrome/test/injection_test_dll.h" +#include "content/common/injection_test_dll.h" #include "sandbox/src/sandbox.h" #elif defined(OS_POSIX) && !defined(OS_MACOSX) #include "base/global_descriptors_posix.h" @@ -143,7 +143,7 @@ int PluginMain(const MainFunctionParams& parameters) { } } if (sandbox_test_module) { - RunRendererTests run_security_tests = + RunPluginTests run_security_tests = reinterpret_cast<RunPluginTests>(GetProcAddress(sandbox_test_module, kPluginTestCall)); DCHECK(run_security_tests); diff --git a/chrome/renderer/renderer_main_platform_delegate_win.cc b/chrome/renderer/renderer_main_platform_delegate_win.cc index 0aff8e6..657bd3f 100644 --- a/chrome/renderer/renderer_main_platform_delegate_win.cc +++ b/chrome/renderer/renderer_main_platform_delegate_win.cc @@ -9,7 +9,7 @@ #include "base/scoped_ptr.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" -#include "chrome/test/injection_test_dll.h" +#include "content/common/injection_test_dll.h" #include "sandbox/src/sandbox.h" #include "ui/gfx/native_theme_win.h" #include "unicode/timezone.h" diff --git a/chrome/test/security_tests/security_tests.cc b/chrome/test/security_tests/security_tests.cc index 33f2755..b42cc73 100644 --- a/chrome/test/security_tests/security_tests.cc +++ b/chrome/test/security_tests/security_tests.cc @@ -6,8 +6,8 @@ #include <string> #define TEST_INJECTION_DLL -#include "chrome/test/injection_test_dll.h" #include "chrome/test/security_tests/ipc_security_tests.h" +#include "content/common/injection_test_dll.h" #include "sandbox/tests/common/controller.h" #include "sandbox/tests/validation_tests/commands.h" diff --git a/chrome/test/injection_test_dll.h b/content/common/injection_test_dll.h index 6240e0b..cc062ae 100644 --- a/chrome/test/injection_test_dll.h +++ b/content/common/injection_test_dll.h @@ -1,9 +1,9 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// 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 CHROME_TEST_INJECTION_TEST_DLL_H__ -#define CHROME_TEST_INJECTION_TEST_DLL_H__ +#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 @@ -24,4 +24,4 @@ typedef BOOL (__cdecl *RunPluginTests)(int* test_count); #endif } -#endif // CHROME_TEST_INJECTION_TEST_DLL_H__ +#endif // CONTENT_COMMON_INJECTION_TEST_DLL_H_ |