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

Side by Side Diff: chrome/browser/extensions/api/desktop_capture/desktop_capture_apitest.cc

Issue 93583003: Reland 237634 and 237645. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase at 237726. Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/media/desktop_capture_device_ash.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/desktop_capture_device_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698