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

Unified Diff: ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm

Issue 2748793002: [ios] Add a delegate to WebStateList class. (Closed)
Patch Set: Browser owns the BrowserWebStateListDelegate. 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 side-by-side diff with in-line comments
Download patch
Index: ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
diff --git a/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm b/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
index 58fb791d5f4724dcefdb45073dcad432ae03499d..95edc1bf66b8828f0bf7e8f6062371af75b6bf1a 100644
--- a/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
+++ b/ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
+#import "ios/shared/chrome/browser/tabs/fake_web_state_list_delegate.h"
#import "ios/shared/chrome/browser/tabs/web_state_list.h"
#import "ios/web/public/test/fakes/test_web_state.h"
#import "net/base/mac/url_conversions.h"
@@ -40,7 +41,8 @@ const char* const kURLs[] = {kURL0, kURL1, kURL2};
class WebStateListFastEnumerationHelperTest : public PlatformTest {
public:
WebStateListFastEnumerationHelperTest()
- : web_state_list_(WebStateList::WebStateOwned) {}
+ : web_state_list_(&web_state_list_delegate_,
+ WebStateList::WebStateOwned) {}
NSArray* ArrayFromWebStateList() {
id<WebStateProxyFactory> proxy =
@@ -72,6 +74,7 @@ class WebStateListFastEnumerationHelperTest : public PlatformTest {
}
private:
+ FakeWebStateListDelegate web_state_list_delegate_;
WebStateList web_state_list_;
DISALLOW_COPY_AND_ASSIGN(WebStateListFastEnumerationHelperTest);

Powered by Google App Engine
This is Rietveld 408576698