diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 20:03:54 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 20:03:54 +0000 |
commit | 1ecbf13615d89a0e0369cab2e70692d5b9a46341 (patch) | |
tree | 8938e0f033cb69a1ef1c4b009396bec20c4e623a /chrome/browser/visitedlink_perftest.cc | |
parent | 91a55b979b98d4dd69c7dcf61bc408ae230efab1 (diff) | |
download | chromium_src-1ecbf13615d89a0e0369cab2e70692d5b9a46341.zip chromium_src-1ecbf13615d89a0e0369cab2e70692d5b9a46341.tar.gz chromium_src-1ecbf13615d89a0e0369cab2e70692d5b9a46341.tar.bz2 |
Port flush_cache tool and perf_tests.
BUG=4160,4263
Review URL: http://codereview.chromium.org/9639
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/visitedlink_perftest.cc')
-rw-r--r-- | chrome/browser/visitedlink_perftest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/visitedlink_perftest.cc b/chrome/browser/visitedlink_perftest.cc index d589f92..3775fab 100644 --- a/chrome/browser/visitedlink_perftest.cc +++ b/chrome/browser/visitedlink_perftest.cc @@ -6,6 +6,7 @@ #include <string> #include <vector> +#include "base/file_path.h" #include "base/file_util.h" #include "base/perftimer.h" #include "base/shared_memory.h" @@ -143,7 +144,8 @@ TEST_F(VisitedLink, TestLoad) { for (int i = 0; i < load_count; i++) { // make sure the file has to be re-loaded - file_util::EvictFileFromSystemCache(db_name_.c_str()); + file_util::EvictFileFromSystemCache( + FilePath::FromWStringHack(std::wstring(db_name_))); // cold load (no OS cache, hopefully) { |