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

Unified Diff: ios/web/web_state/web_state_observer_bridge_unittest.mm

Issue 2901633002: Replaced NavigationContext::IsErrorPage with NavigationContext::GetError (Closed)
Patch Set: 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
« no previous file with comments | « ios/web/web_state/web_state_impl_unittest.mm ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_observer_bridge_unittest.mm
diff --git a/ios/web/web_state/web_state_observer_bridge_unittest.mm b/ios/web/web_state/web_state_observer_bridge_unittest.mm
index 29d433fe26e56f301e6a29336918e3ff5b4d5745..38daf32bd8231b2dd2888506921ab56b345fedf7 100644
--- a/ios/web/web_state/web_state_observer_bridge_unittest.mm
+++ b/ios/web/web_state/web_state_observer_bridge_unittest.mm
@@ -10,7 +10,7 @@
#import "ios/web/public/test/fakes/crw_test_web_state_observer.h"
#import "ios/web/public/test/fakes/test_web_state.h"
#import "ios/web/public/web_state/web_state_observer_bridge.h"
-#include "ios/web/web_state/navigation_context_impl.h"
+#import "ios/web/web_state/navigation_context_impl.h"
#include "net/http/http_response_headers.h"
#include "testing/platform_test.h"
@@ -55,7 +55,7 @@ TEST_F(WebStateObserverBridgeTest, DidStartNavigation) {
ASSERT_TRUE(actual_context);
EXPECT_EQ(&test_web_state_, actual_context->GetWebState());
EXPECT_EQ(context->IsSameDocument(), actual_context->IsSameDocument());
- EXPECT_EQ(context->IsErrorPage(), actual_context->IsErrorPage());
+ EXPECT_EQ(context->GetError(), actual_context->GetError());
EXPECT_EQ(context->GetUrl(), actual_context->GetUrl());
EXPECT_EQ(context->GetResponseHeaders(),
actual_context->GetResponseHeaders());
@@ -78,7 +78,7 @@ TEST_F(WebStateObserverBridgeTest, DidFinishNavigation) {
ASSERT_TRUE(actual_context);
EXPECT_EQ(&test_web_state_, actual_context->GetWebState());
EXPECT_EQ(context->IsSameDocument(), actual_context->IsSameDocument());
- EXPECT_EQ(context->IsErrorPage(), actual_context->IsErrorPage());
+ EXPECT_EQ(context->GetError(), actual_context->GetError());
EXPECT_EQ(context->GetUrl(), actual_context->GetUrl());
EXPECT_EQ(context->GetResponseHeaders(),
actual_context->GetResponseHeaders());
« no previous file with comments | « ios/web/web_state/web_state_impl_unittest.mm ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698