diff options
Diffstat (limited to 'chrome/common/chrome_plugin_unittest.cc')
-rw-r--r-- | chrome/common/chrome_plugin_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/chrome_plugin_unittest.cc b/chrome/common/chrome_plugin_unittest.cc index 1465f1a..09ae2f4 100644 --- a/chrome/common/chrome_plugin_unittest.cc +++ b/chrome/common/chrome_plugin_unittest.cc @@ -17,7 +17,8 @@ namespace { const wchar_t kDocRoot[] = L"chrome/test/data"; -const wchar_t kPluginFilename[] = L"test_chrome_plugin.dll"; +const FilePath::CharType kPluginFilename[] = + FILE_PATH_LITERAL("test_chrome_plugin.dll"); class ChromePluginTest : public testing::Test, public URLRequest::Delegate { public: @@ -117,9 +118,9 @@ static void STDCALL CPT_InvokeLater(TestFuncParams::CallbackFunc callback, } void ChromePluginTest::LoadPlugin() { - std::wstring path; + FilePath path; PathService::Get(base::DIR_EXE, &path); - file_util::AppendToPath(&path, kPluginFilename); + path = path.Append(kPluginFilename); plugin_ = ChromePluginLib::Create(path, GetCPBrowserFuncsForBrowser()); // Exchange test APIs with the plugin. |