Index: chrome/browser/policy/policy_browsertest.cc |
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc |
index 85d113b910daaf32b16b07c2c9136518c5c9b249..3fc4d9469b24d79fd532c4e1ff56784db97aa7f8 100644 |
--- a/chrome/browser/policy/policy_browsertest.cc |
+++ b/chrome/browser/policy/policy_browsertest.cc |
@@ -303,6 +303,7 @@ void CheckURLIsBlocked(Browser* browser, const char* spec) { |
EXPECT_TRUE(result); |
} |
+#if !defined(OS_CHROMEOS) |
// Downloads a file named |file| and expects it to be saved to |dir|, which |
// must be empty. |
void DownloadAndVerifyFile( |
@@ -326,6 +327,7 @@ void DownloadAndVerifyFile( |
EXPECT_EQ(file, enumerator.Next().BaseName()); |
EXPECT_EQ(base::FilePath(), enumerator.Next()); |
} |
+#endif |
#if defined(OS_CHROMEOS) |
Nico
2013/11/10 05:07:09
Maybe make the previous 3 lines an #else?
hans
2013/11/11 19:29:51
Done.
|
int CountScreenshots() { |
@@ -342,6 +344,7 @@ int CountScreenshots() { |
#endif |
// Checks if WebGL is enabled in the given WebContents. |
+#if defined(OS_MACOSX) |
bool IsWebGLEnabled(content::WebContents* contents) { |
bool result = false; |
EXPECT_TRUE(content::ExecuteScriptAndExtractBool( |
@@ -352,6 +355,7 @@ bool IsWebGLEnabled(content::WebContents* contents) { |
&result)); |
return result; |
} |
+#endif // defined(OS_MACOSX) |
bool IsJavascriptEnabled(content::WebContents* contents) { |
scoped_ptr<base::Value> value = content::ExecuteScriptAndGetValue( |