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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/ChromeHomeNewTabPageTest.java

Issue 2753773006: [Home] Move bottom sheet classes to widget/bottomsheet (Closed)
Patch Set: Fix bottom_sheet_bottom_nav.xml Created 3 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import android.support.test.filters.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.chromium.base.ThreadUtils; 9 import org.chromium.base.ThreadUtils;
10 import org.chromium.chrome.browser.UrlConstants; 10 import org.chromium.chrome.browser.UrlConstants;
11 import org.chromium.chrome.browser.tab.Tab; 11 import org.chromium.chrome.browser.tab.Tab;
12 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; 12 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType;
13 import org.chromium.chrome.browser.widget.BottomSheet;
14 import org.chromium.chrome.browser.widget.FadingBackgroundView; 13 import org.chromium.chrome.browser.widget.FadingBackgroundView;
14 import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet;
15 import org.chromium.chrome.test.BottomSheetTestCaseBase; 15 import org.chromium.chrome.test.BottomSheetTestCaseBase;
16 import org.chromium.chrome.test.util.ChromeTabUtils; 16 import org.chromium.chrome.test.util.ChromeTabUtils;
17 import org.chromium.chrome.test.util.NewTabPageTestUtils; 17 import org.chromium.chrome.test.util.NewTabPageTestUtils;
18 18
19 /** 19 /**
20 * Tests for the {@link ChromeHomeNewTabPage}. 20 * Tests for the {@link ChromeHomeNewTabPage}.
21 */ 21 */
22 public class ChromeHomeNewTabPageTest extends BottomSheetTestCaseBase { 22 public class ChromeHomeNewTabPageTest extends BottomSheetTestCaseBase {
23 private FadingBackgroundView mFadingBackgroundView; 23 private FadingBackgroundView mFadingBackgroundView;
24 24
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 mBottomSheet.getSheetState()); 132 mBottomSheet.getSheetState());
133 assertFalse(mFadingBackgroundView.isEnabled()); 133 assertFalse(mFadingBackgroundView.isEnabled());
134 assertEquals(0f, mFadingBackgroundView.getAlpha()); 134 assertEquals(0f, mFadingBackgroundView.getAlpha());
135 } else { 135 } else {
136 assertEquals("Sheet should be peeking", BottomSheet.SHEET_STATE_PEEK , 136 assertEquals("Sheet should be peeking", BottomSheet.SHEET_STATE_PEEK ,
137 mBottomSheet.getSheetState()); 137 mBottomSheet.getSheetState());
138 assertTrue(mFadingBackgroundView.isEnabled()); 138 assertTrue(mFadingBackgroundView.isEnabled());
139 } 139 }
140 } 140 }
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698