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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java

Issue 1577433004: Flip proprietary codecs to false for Android chromium builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix apk builder for webm. Created 4 years, 9 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 unified diff | Download patch
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 package org.chromium.chrome.browser.contextmenu; 5 package org.chromium.chrome.browser.contextmenu;
6 6
7 import android.content.ClipData; 7 import android.content.ClipData;
8 import android.content.ClipboardManager; 8 import android.content.ClipboardManager;
9 import android.content.Context; 9 import android.content.Context;
10 import android.os.Environment; 10 import android.os.Environment;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 saveMediaFromContextMenu("testImage", R.id.contextmenu_save_image, "test _image.png"); 229 saveMediaFromContextMenu("testImage", R.id.contextmenu_save_image, "test _image.png");
230 } 230 }
231 231
232 @LargeTest 232 @LargeTest
233 @Feature({"Browser"}) 233 @Feature({"Browser"})
234 @DisableIf.Build(sdk_is_greater_than = 22, message = "crbug.com/592594") 234 @DisableIf.Build(sdk_is_greater_than = 22, message = "crbug.com/592594")
235 public void testSaveVideo() 235 public void testSaveVideo()
236 throws InterruptedException, TimeoutException, SecurityException, IO Exception { 236 throws InterruptedException, TimeoutException, SecurityException, IO Exception {
237 // Click the video to enable playback 237 // Click the video to enable playback
238 DOMUtils.clickNode(this, getActivity().getCurrentContentViewCore(), "vid eoDOMElement"); 238 DOMUtils.clickNode(this, getActivity().getCurrentContentViewCore(), "vid eoDOMElement");
239 saveMediaFromContextMenu("videoDOMElement", R.id.contextmenu_save_video, "test.mp4"); 239 saveMediaFromContextMenu("videoDOMElement", R.id.contextmenu_save_video, "test.webm");
240 } 240 }
241 241
242 /** 242 /**
243 * Opens a link and image in new tabs and verifies the order of the tabs. Al so verifies that 243 * Opens a link and image in new tabs and verifies the order of the tabs. Al so verifies that
244 * the parent page remains in front after opening links in new tabs. 244 * the parent page remains in front after opening links in new tabs.
245 * 245 *
246 * This test only applies in tabbed mode. In document mode, Android handles the ordering of the 246 * This test only applies in tabbed mode. In document mode, Android handles the ordering of the
247 * tabs. 247 * tabs.
248 */ 248 */
249 @LargeTest 249 @LargeTest
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 assertNotNull("Primary clip is null", clipData); 312 assertNotNull("Primary clip is null", clipData);
313 assertTrue("Primary clip contains no items.", clipData.getItemCount() > 0); 313 assertTrue("Primary clip contains no items.", clipData.getItemCount() > 0);
314 return clipData.getItemAt(0).getText().toString(); 314 return clipData.getItemAt(0).getText().toString();
315 } 315 }
316 316
317 private void assertStringContains(String subString, String superString) { 317 private void assertStringContains(String subString, String superString) {
318 assertTrue("String '" + superString + "' does not contain '" + subString + "'", 318 assertTrue("String '" + superString + "' does not contain '" + subString + "'",
319 superString.contains(subString)); 319 superString.contains(subString));
320 } 320 }
321 } 321 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698