diff options
author | slightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 23:54:34 +0000 |
---|---|---|
committer | slightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 23:54:34 +0000 |
commit | 11903b0dd26e51563e0645af2e900649ac028408 (patch) | |
tree | e544522a8295325407938d998b09a8dcc996ea03 /chrome_frame/test_utils.cc | |
parent | 5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e (diff) | |
download | chromium_src-11903b0dd26e51563e0645af2e900649ac028408.zip chromium_src-11903b0dd26e51563e0645af2e900649ac028408.tar.gz chromium_src-11903b0dd26e51563e0645af2e900649ac028408.tar.bz2 |
Fixes GCF perf tests in prep for re-enabling them on the bots.
BUG=36734
TEST=build/run chrome_frame_perftests.exe, note that they all run now
Review URL: http://codereview.chromium.org/1433002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test_utils.cc')
-rw-r--r-- | chrome_frame/test_utils.cc | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/chrome_frame/test_utils.cc b/chrome_frame/test_utils.cc index e87c4bb..e1d33fe 100644 --- a/chrome_frame/test_utils.cc +++ b/chrome_frame/test_utils.cc @@ -20,6 +20,7 @@ #include "testing/gtest/include/gtest/gtest.h" const wchar_t kChromeFrameDllName[] = L"npchrome_frame.dll"; +const wchar_t kReferenceChromeFrameDllName[] = L"npchrome_tab.dll"; // Statics FilePath ScopedChromeFrameRegistrar::GetChromeFrameBuildPath() { @@ -72,6 +73,23 @@ void ScopedChromeFrameRegistrar::RegisterAtPath( ASSERT_TRUE(FreeLibrary(chrome_frame_dll_handle)); } +std::wstring ScopedChromeFrameRegistrar::GetReferenceChromeFrameDllPath() { + std::wstring reference_build_dir; + PathService::Get(chrome::DIR_APP, &reference_build_dir); + + file_util::UpOneDirectory(&reference_build_dir); + file_util::UpOneDirectory(&reference_build_dir); + + file_util::AppendToPath(&reference_build_dir, L"chrome_frame"); + file_util::AppendToPath(&reference_build_dir, L"tools"); + file_util::AppendToPath(&reference_build_dir, L"test"); + file_util::AppendToPath(&reference_build_dir, L"reference_build"); + file_util::AppendToPath(&reference_build_dir, L"chrome"); + file_util::AppendToPath(&reference_build_dir, L"servers"); + file_util::AppendToPath(&reference_build_dir, kReferenceChromeFrameDllName); + return reference_build_dir; +} + // Non-statics ScopedChromeFrameRegistrar::ScopedChromeFrameRegistrar( @@ -98,21 +116,7 @@ void ScopedChromeFrameRegistrar::RegisterChromeFrameAtPath( } void ScopedChromeFrameRegistrar::RegisterReferenceChromeFrameBuild() { - std::wstring reference_build_dir; - ASSERT_TRUE(PathService::Get(chrome::DIR_APP, &reference_build_dir)); - - file_util::UpOneDirectory(&reference_build_dir); - file_util::UpOneDirectory(&reference_build_dir); - - file_util::AppendToPath(&reference_build_dir, L"chrome"); - file_util::AppendToPath(&reference_build_dir, L"tools"); - file_util::AppendToPath(&reference_build_dir, L"test"); - file_util::AppendToPath(&reference_build_dir, L"reference_build"); - file_util::AppendToPath(&reference_build_dir, L"chrome_frame"); - file_util::AppendToPath(&reference_build_dir, L"servers"); - file_util::AppendToPath(&reference_build_dir, kChromeFrameDllName); - - RegisterChromeFrameAtPath(reference_build_dir); + RegisterChromeFrameAtPath(GetReferenceChromeFrameDllPath()); } std::wstring ScopedChromeFrameRegistrar::GetChromeFrameDllPath() const { |