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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/bookmarks/BookmarkModelTest.java

Issue 1694093003: Rename EnhancedBookmarks to Bookmarks, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.bookmarks; 5 package org.chromium.chrome.browser.bookmarks;
6 6
7 import android.test.UiThreadTest; 7 import android.test.UiThreadTest;
8 import android.test.suitebuilder.annotation.SmallTest; 8 import android.test.suitebuilder.annotation.SmallTest;
9 9
10 import org.chromium.base.ThreadUtils; 10 import org.chromium.base.ThreadUtils;
(...skipping 12 matching lines...) Expand all
23 import java.util.ArrayList; 23 import java.util.ArrayList;
24 import java.util.Arrays; 24 import java.util.Arrays;
25 import java.util.HashSet; 25 import java.util.HashSet;
26 import java.util.List; 26 import java.util.List;
27 import java.util.Stack; 27 import java.util.Stack;
28 import java.util.concurrent.Semaphore; 28 import java.util.concurrent.Semaphore;
29 import java.util.concurrent.TimeUnit; 29 import java.util.concurrent.TimeUnit;
30 import java.util.concurrent.atomic.AtomicReference; 30 import java.util.concurrent.atomic.AtomicReference;
31 31
32 /** 32 /**
33 * Tests for {@link BookmarkModel}, the data layer of Enhanced Bookmarks. 33 * Tests for {@link BookmarkModel}, the data layer of bookmarks.
34 */ 34 */
35 public class BookmarkModelTest extends NativeLibraryTestBase { 35 public class BookmarkModelTest extends NativeLibraryTestBase {
36 private static final int TIMEOUT_MS = 5000; 36 private static final int TIMEOUT_MS = 5000;
37 private BookmarkModel mBookmarkModel; 37 private BookmarkModel mBookmarkModel;
38 private BookmarkId mMobileNode; 38 private BookmarkId mMobileNode;
39 private BookmarkId mOtherNode; 39 private BookmarkId mOtherNode;
40 private BookmarkId mDesktopNode; 40 private BookmarkId mDesktopNode;
41 41
42 @Override 42 @Override
43 protected void setUp() throws Exception { 43 protected void setUp() throws Exception {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 HashSet<BookmarkId> expectedIdsCopy = new HashSet<>(expectedIds); 272 HashSet<BookmarkId> expectedIdsCopy = new HashSet<>(expectedIds);
273 assertEquals(expectedIdsCopy.size(), listToVerify.size()); 273 assertEquals(expectedIdsCopy.size(), listToVerify.size());
274 for (BookmarkId id : listToVerify) { 274 for (BookmarkId id : listToVerify) {
275 assertNotNull(id); 275 assertNotNull(id);
276 assertTrue("List contains wrong element: ", expectedIdsCopy.contains (id)); 276 assertTrue("List contains wrong element: ", expectedIdsCopy.contains (id));
277 expectedIdsCopy.remove(id); 277 expectedIdsCopy.remove(id);
278 } 278 }
279 assertTrue("List does not contain some expected bookmarks: ", expectedId sCopy.isEmpty()); 279 assertTrue("List does not contain some expected bookmarks: ", expectedId sCopy.isEmpty());
280 } 280 }
281 } 281 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698