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

Unified Diff: ios/web/navigation/navigation_item_impl_unittest.mm

Issue 2699253002: Removed CRWSessionEntry unittests. (Closed)
Patch Set: Created 3 years, 10 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/web/navigation/navigation_item_impl_unittest.mm
diff --git a/ios/web/navigation/navigation_item_impl_unittest.mm b/ios/web/navigation/navigation_item_impl_unittest.mm
index b5e08ebe7975e604fb8ac643d9580b499c4ad720..61dc15ed3576c7c8d9be7d89bb27bde41d23ea75 100644
--- a/ios/web/navigation/navigation_item_impl_unittest.mm
+++ b/ios/web/navigation/navigation_item_impl_unittest.mm
@@ -8,7 +8,7 @@
#include "base/logging.h"
#import "base/mac/scoped_nsobject.h"
-#include "base/strings/sys_string_conversions.h"
+#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#import "testing/gtest_mac.h"
#include "testing/platform_test.h"
@@ -45,6 +45,15 @@ void SetUp() override {
EXPECT_TRUE(item_->GetURL().is_valid());
}
+// Tests that the debug description is as expected.
+TEST_F(NavigationItemTest, Description) {
+ item_->SetTitle(base::UTF8ToUTF16("Title"));
+ EXPECT_NSEQ(item_->GetDescription(),
Eugene But (OOO till 7-30) 2017/02/18 01:26:00 EXPECT_NSEQ takes first argument as expected value
kkhorimoto 2017/03/02 01:55:55 Done.
+ @"url:http://init.test/ originalurl:http://init.test/ "
+ @"title:Title transition:2 displayState:{ scrollOffset:(nan, "
+ @"nan), zoomScaleRange:(nan, nan), zoomScale:nan } desktopUA:0");
+}
+
// Tests that copied NavigationItemImpls create copies of data members that are
// objects.
TEST_F(NavigationItemTest, Copy) {
« ios/web/navigation/navigation_item_impl.h ('K') | « ios/web/navigation/navigation_item_impl.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698