| OLD | NEW |
| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
| 8 import android.test.suitebuilder.annotation.MediumTest; | 8 import android.test.suitebuilder.annotation.MediumTest; |
| 9 import android.test.suitebuilder.annotation.SmallTest; | 9 import android.test.suitebuilder.annotation.SmallTest; |
| 10 | 10 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return false; | 210 return false; |
| 211 } | 211 } |
| 212 | 212 |
| 213 @Override | 213 @Override |
| 214 public void copyStateFrom(NavigationController source) { | 214 public void copyStateFrom(NavigationController source) { |
| 215 } | 215 } |
| 216 | 216 |
| 217 @Override | 217 @Override |
| 218 public void copyStateFromAndPrune(NavigationController source, boolean r
eplaceEntry) { | 218 public void copyStateFromAndPrune(NavigationController source, boolean r
eplaceEntry) { |
| 219 } | 219 } |
| 220 | |
| 221 @Override | |
| 222 public String getEntryExtraData(int index, String key) { | |
| 223 return null; | |
| 224 } | |
| 225 | |
| 226 @Override | |
| 227 public void setEntryExtraData(int index, String key, String value) {} | |
| 228 } | 220 } |
| 229 | 221 |
| 230 @MediumTest | 222 @MediumTest |
| 231 @Feature({"Navigation"}) | 223 @Feature({"Navigation"}) |
| 232 public void testFaviconFetching() throws InterruptedException { | 224 public void testFaviconFetching() throws InterruptedException { |
| 233 final TestNavigationController controller = new TestNavigationController
(); | 225 final TestNavigationController controller = new TestNavigationController
(); |
| 234 final NavigationPopup popup = new NavigationPopup( | 226 final NavigationPopup popup = new NavigationPopup( |
| 235 mProfile, getActivity(), controller, true); | 227 mProfile, getActivity(), controller, true); |
| 236 popup.setWidth(300); | 228 popup.setWidth(300); |
| 237 popup.setHeight(300); | 229 popup.setHeight(300); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 popup.performItemClick(1); | 278 popup.performItemClick(1); |
| 287 } | 279 } |
| 288 }); | 280 }); |
| 289 | 281 |
| 290 assertFalse("Popup did not hide as expected.", popup.isShowing()); | 282 assertFalse("Popup did not hide as expected.", popup.isShowing()); |
| 291 assertEquals("Popup attempted to navigate to the wrong index", 5, | 283 assertEquals("Popup attempted to navigate to the wrong index", 5, |
| 292 controller.mNavigatedIndex); | 284 controller.mNavigatedIndex); |
| 293 } | 285 } |
| 294 | 286 |
| 295 } | 287 } |
| OLD | NEW |