OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <queue> | 5 #include <queue> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
10 #include "chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h" | 10 #include "chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 replacements.SetPortStr(port); | 136 replacements.SetPortStr(port); |
137 return embedded_test_server()->GetURL(path).ReplaceComponents(replacements); | 137 return embedded_test_server()->GetURL(path).ReplaceComponents(replacements); |
138 } | 138 } |
139 | 139 |
140 FakeDesktopMediaPickerFactory picker_factory_; | 140 FakeDesktopMediaPickerFactory picker_factory_; |
141 }; | 141 }; |
142 | 142 |
143 } // namespace | 143 } // namespace |
144 | 144 |
145 // Flaky on Windows: http://crbug.com/301887 | 145 // Flaky on Windows: http://crbug.com/301887 |
146 #if defined(OS_WIN) | 146 // Failing on ChromeOS: http://crbug.com/324179 |
| 147 #if defined(OS_WIN) || defined(OS_CHROMEOS) |
147 #define MAYBE_ChooseDesktopMedia DISABLED_ChooseDesktopMedia | 148 #define MAYBE_ChooseDesktopMedia DISABLED_ChooseDesktopMedia |
148 #else | 149 #else |
149 #define MAYBE_ChooseDesktopMedia ChooseDesktopMedia | 150 #define MAYBE_ChooseDesktopMedia ChooseDesktopMedia |
150 #endif | 151 #endif |
151 IN_PROC_BROWSER_TEST_F(DesktopCaptureApiTest, MAYBE_ChooseDesktopMedia) { | 152 IN_PROC_BROWSER_TEST_F(DesktopCaptureApiTest, MAYBE_ChooseDesktopMedia) { |
152 // Each of the following expectations corresponds to one test in | 153 // Each of the following expectations corresponds to one test in |
153 // chrome/test/data/extensions/api_test/desktop_capture/test.js . | 154 // chrome/test/data/extensions/api_test/desktop_capture/test.js . |
154 FakeDesktopMediaPickerFactory::Expectation picker_expectations[] = { | 155 FakeDesktopMediaPickerFactory::Expectation picker_expectations[] = { |
155 // pickerUiCanceled() | 156 // pickerUiCanceled() |
156 { true, true, | 157 { true, true, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 "getStream()", &result)); | 216 "getStream()", &result)); |
216 EXPECT_TRUE(result); | 217 EXPECT_TRUE(result); |
217 | 218 |
218 ASSERT_TRUE(content::ExecuteScriptAndExtractBool( | 219 ASSERT_TRUE(content::ExecuteScriptAndExtractBool( |
219 browser()->tab_strip_model()->GetActiveWebContents(), | 220 browser()->tab_strip_model()->GetActiveWebContents(), |
220 "getStreamWithInvalidId()", &result)); | 221 "getStreamWithInvalidId()", &result)); |
221 EXPECT_TRUE(result); | 222 EXPECT_TRUE(result); |
222 } | 223 } |
223 | 224 |
224 } // namespace extensions | 225 } // namespace extensions |
OLD | NEW |