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

Unified Diff: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm

Issue 2904053002: [ios] Active web state observer in tab collection. (Closed)
Patch Set: Address comments. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
diff --git a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
index 7b2663617f13118a2ff05323768e2ae96094f150..2af66b677d1844f7abcd351d37a8cb433009c3c9 100644
--- a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
+++ b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
@@ -63,14 +63,14 @@ class TabCollectionMediatorTest : public PlatformTest {
// Tests that the consumer is notified of an insert into webStateList.
TEST_F(TabCollectionMediatorTest, TestInsertWebState) {
InsertWebState(2);
- [[consumer_ verify] insertItem:[OCMArg any] atIndex:2];
+ [[consumer_ verify] insertItem:[OCMArg any] atIndex:2 selectedIndex:0];
}
// Tests that the consumer is notified that a web state has been moved in
// webStateList.
TEST_F(TabCollectionMediatorTest, TestMoveWebState) {
web_state_list_->MoveWebStateAt(0, 2);
- [[consumer_ verify] moveItemFromIndex:0 toIndex:2];
+ [[consumer_ verify] moveItemFromIndex:0 toIndex:2 selectedIndex:2];
}
// Tests that the consumer is notified that a web state has been replaced in
@@ -85,7 +85,7 @@ TEST_F(TabCollectionMediatorTest, TestReplaceWebState) {
// webStateList.
TEST_F(TabCollectionMediatorTest, TestDetachWebState) {
web_state_list_->CloseWebStateAt(1);
- [[consumer_ verify] deleteItemAtIndex:1];
+ [[consumer_ verify] deleteItemAtIndex:1 selectedIndex:0];
}
// Tests that the consumer is notified that the active web state has changed in

Powered by Google App Engine
This is Rietveld 408576698