NavigationBarFragmentTest.java revision 49fa016a98cef9940c883b3f620a0e90537a204e
1/* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file 5 * except in compliance with the License. You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the 10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 11 * KIND, either express or implied. See the License for the specific language governing 12 * permissions and limitations under the License. 13 */ 14 15package com.android.systemui.statusbar.phone; 16 17import static org.mockito.Mockito.mock; 18 19import com.android.systemui.FragmentTestCase; 20import com.android.systemui.recents.Recents; 21import com.android.systemui.stackdivider.Divider; 22import com.android.systemui.statusbar.CommandQueue; 23 24import org.junit.Before; 25 26public class NavigationBarFragmentTest extends FragmentTestCase { 27 28 public NavigationBarFragmentTest() { 29 super(NavigationBarFragment.class); 30 } 31 32 @Before 33 public void setup() { 34 mContext.putComponent(CommandQueue.class, mock(CommandQueue.class)); 35 mContext.putComponent(PhoneStatusBar.class, mock(PhoneStatusBar.class)); 36 mContext.putComponent(Recents.class, mock(Recents.class)); 37 mContext.putComponent(Divider.class, mock(Divider.class)); 38 } 39 40} 41