Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: webkit/tools/test_shell/test_shell_test.cc

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell_test.h ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_test.cc
===================================================================
--- webkit/tools/test_shell/test_shell_test.cc (revision 25715)
+++ webkit/tools/test_shell/test_shell_test.cc (working copy)
@@ -12,10 +12,11 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/string_util.h"
+#include "net/base/net_util.h"
-std::wstring TestShellTest::GetTestURL(const FilePath& test_case_path,
- const std::string& test_case) {
- return test_case_path.AppendASCII(test_case).ToWStringHack();
+GURL TestShellTest::GetTestURL(const FilePath& test_case_path,
+ const std::string& test_case) {
+ return net::FilePathToFileURL(test_case_path.AppendASCII(test_case));
}
void TestShellTest::SetUp() {
@@ -32,7 +33,7 @@
void TestShellTest::TearDown() {
// Loading a blank url clears the memory in the current page.
- test_shell_->LoadURL(L"about:blank");
+ test_shell_->LoadURL(GURL("about:blank"));
test_shell_->DestroyWindow(test_shell_->mainWnd());
LayoutTestController::ClearShell();
@@ -41,5 +42,5 @@
}
void TestShellTest::CreateEmptyWindow() {
- TestShell::CreateNewWindow(L"about:blank", &test_shell_);
+ TestShell::CreateNewWindow(GURL("about:blank"), &test_shell_);
}
« no previous file with comments | « webkit/tools/test_shell/test_shell_test.h ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698