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

Unified Diff: blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc

Issue 2325893002: [blimp] Add support for having multiple tabs (Closed)
Patch Set: Add tablet and non-blimp support Created 4 years, 3 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: blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc
diff --git a/blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc b/blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc
index 9ead75c799c5f41a5be18789e11aab0f6c698860..945ffc66868705e0da3e12ad401d539fa75d741b 100644
--- a/blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc
+++ b/blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc
@@ -16,6 +16,7 @@ namespace blimp {
namespace client {
namespace {
+const int kDummyBlimpContentsId = 0;
const GURL kExampleURL = GURL("https://www.example.com/");
class MockBlimpNavigationControllerDelegate
@@ -36,7 +37,8 @@ TEST(BlimpNavigationControllerImplTest, BackForwardNavigation) {
testing::StrictMock<MockBlimpNavigationControllerDelegate> delegate;
testing::StrictMock<FakeNavigationFeature> feature;
- BlimpNavigationControllerImpl navigation_controller(&delegate, &feature);
+ BlimpNavigationControllerImpl navigation_controller(kDummyBlimpContentsId,
+ &delegate, &feature);
feature.SetDelegate(1, &navigation_controller);
EXPECT_CALL(delegate, OnNavigationStateChanged());
@@ -62,7 +64,8 @@ TEST(BlimpNavigationControllerImplTest, Loading) {
testing::StrictMock<MockBlimpNavigationControllerDelegate> delegate;
testing::StrictMock<FakeNavigationFeature> feature;
- BlimpNavigationControllerImpl navigation_controller(&delegate, &feature);
+ BlimpNavigationControllerImpl navigation_controller(kDummyBlimpContentsId,
+ &delegate, &feature);
feature.SetDelegate(1, &navigation_controller);
EXPECT_CALL(delegate, OnNavigationStateChanged());
« no previous file with comments | « blimp/client/core/contents/blimp_navigation_controller_impl.cc ('k') | blimp/client/core/contents/navigation_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698