summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu_unittest.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 10:17:12 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 10:17:12 +0000
commit72cbd32707a2ede460bcc1b3cb199e653282a8ed (patch)
treed212d36fbd064fd4b8c5783a9002f235c98d7a2d /webkit/glue/context_menu_unittest.cc
parent2fe25aac3d317086338a761e3b040cbcffc3a873 (diff)
downloadchromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.zip
chromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.tar.gz
chromium_src-72cbd32707a2ede460bcc1b3cb199e653282a8ed.tar.bz2
Switching things to FilePath:
Remove following deprecated wstring-using functions: net/net_util: FilePathToFileURL net/net_util: FileURLToFilePath Switch net/base/upload_data to FilePath. Switch upload-related parts of net/url_request/url_request to FilePath. Made necessary adjustments in rest of code (a lot). Review URL: http://codereview.chromium.org/63011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu_unittest.cc')
-rw-r--r--webkit/glue/context_menu_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/glue/context_menu_unittest.cc b/webkit/glue/context_menu_unittest.cc
index b7ff8ed..8e62c2c 100644
--- a/webkit/glue/context_menu_unittest.cc
+++ b/webkit/glue/context_menu_unittest.cc
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/file_path.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "webkit/glue/webframe.h"
@@ -24,12 +25,12 @@ class ContextMenuCapturing : public TestShellTest {
TestShellTest::SetUp();
iframes_data_dir_ = data_dir_;
- file_util::AppendToPath(&iframes_data_dir_, L"test_shell");
- file_util::AppendToPath(&iframes_data_dir_, L"iframes");
+ iframes_data_dir_ = iframes_data_dir_.AppendASCII("test_shell");
+ iframes_data_dir_ = iframes_data_dir_.AppendASCII("iframes");
ASSERT_TRUE(file_util::PathExists(iframes_data_dir_));
}
- std::wstring iframes_data_dir_;
+ FilePath iframes_data_dir_;
};
@@ -40,7 +41,7 @@ TEST_F(ContextMenuCapturing, ContextMenuCapturing) {
test_delegate->clear_captured_context_menu_events();
EXPECT_EQ(0U, test_delegate->captured_context_menu_events().size());
- std::wstring test_url = GetTestURL(iframes_data_dir_, L"testiframe.html");
+ std::wstring test_url = GetTestURL(iframes_data_dir_, "testiframe.html");
test_shell_->LoadURL(test_url.c_str());
test_shell_->WaitTestFinished();