summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test_utils.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:25:11 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:25:11 +0000
commit87ba2e6056bfe771ddc6ce540cf3d4e413d4e6f4 (patch)
treefabaa7bfcd986c6ea6481d571e7ccad4afc74ced /chrome_frame/test_utils.cc
parent35c96084eb0abf809bb86c9c95c74ac4e6284fe5 (diff)
downloadchromium_src-87ba2e6056bfe771ddc6ce540cf3d4e413d4e6f4.zip
chromium_src-87ba2e6056bfe771ddc6ce540cf3d4e413d4e6f4.tar.gz
chromium_src-87ba2e6056bfe771ddc6ce540cf3d4e413d4e6f4.tar.bz2
Add an integration test for Chrome Frame's DllRedirector class.
Fix a bug in the DllRedirector module loading code. Expand the alternate version generator code to provide a function for generating new versions of single modules. Remove the LI SACL from the shared memory lock for Win XP. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6600001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test_utils.cc')
-rw-r--r--chrome_frame/test_utils.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome_frame/test_utils.cc b/chrome_frame/test_utils.cc
index 924ea53..258b0fa 100644
--- a/chrome_frame/test_utils.cc
+++ b/chrome_frame/test_utils.cc
@@ -25,8 +25,7 @@
const wchar_t kChromeFrameDllName[] = L"npchrome_frame.dll";
const wchar_t kChromeLauncherExeName[] = L"chrome_launcher.exe";
-// Statics
-FilePath ScopedChromeFrameRegistrar::GetChromeFrameBuildPath() {
+FilePath GetChromeFrameBuildPath() {
FilePath build_path;
PathService::Get(chrome::DIR_APP, &build_path);
@@ -46,11 +45,13 @@ FilePath ScopedChromeFrameRegistrar::GetChromeFrameBuildPath() {
return dll_path;
}
+// static
void ScopedChromeFrameRegistrar::RegisterDefaults() {
FilePath dll_path = GetChromeFrameBuildPath();
RegisterAtPath(dll_path.value(), chrome_frame_test::GetTestBedType());
}
+// static
void ScopedChromeFrameRegistrar::RegisterAtPath(
const std::wstring& path, RegistrationType registration_type) {
@@ -88,6 +89,7 @@ void ScopedChromeFrameRegistrar::RegisterAtPath(
ASSERT_TRUE(FreeLibrary(dll_handle));
}
+// static
void ScopedChromeFrameRegistrar::UnregisterAtPath(
const std::wstring& path, RegistrationType registration_type) {