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

Unified Diff: chrome/browser/device_orientation/enable_switch_browsertest.cc

Issue 2834066: Fix win build errors. Don't initialize FilePath with const char*. (Closed)
Patch Set: Created 10 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/enable_switch_browsertest.cc
diff --git a/chrome/browser/device_orientation/enable_switch_browsertest.cc b/chrome/browser/device_orientation/enable_switch_browsertest.cc
index debbdf548af0c2ee477105a7327f254c78647516..ee3303c3c9e112103b80c656d32ae9e64c9b8bd2 100644
--- a/chrome/browser/device_orientation/enable_switch_browsertest.cc
+++ b/chrome/browser/device_orientation/enable_switch_browsertest.cc
@@ -12,8 +12,8 @@
class DeviceOrientationEnableSwitchTest : public InProcessBrowserTest {
public:
- GURL testUrl(const char* filename) {
- const FilePath kTestDir("device_orientation");
+ GURL testUrl(const FilePath::CharType* filename) {
+ const FilePath kTestDir(FILE_PATH_LITERAL("device_orientation"));
return ui_test_utils::GetTestUrl(kTestDir, FilePath(filename));
}
};
@@ -27,7 +27,7 @@ IN_PROC_BROWSER_TEST_F(DeviceOrientationEnableSwitchTest, UnavailabilityTest) {
ASSERT_FALSE(has_switch) << "This test does not make sense if "
<< "--enable-device-orientation is set.";
- GURL test_url = testUrl("enable_switch_test.html");
+ GURL test_url = testUrl(FILE_PATH_LITERAL("enable_switch_test.html"));
ui_test_utils::NavigateToURL(browser(), test_url);
std::string status = browser()->GetSelectedTabContents()->GetURL().ref();
EXPECT_EQ("pass", status) << "Page detected device orientation properties.";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698