chrome/browser/sessions/session_types_unittest.cc
// Create a default TabNavigation.  All its fields should be
// initialized to their respective default values.
Create a default TabNavigation.  All its fields should be
initialized to their respective default values.
Create a default TabNavigation . All its fields should be initialized to their respective default values .
TEST(TabNavigationTest, DefaultInitializer) {
  const TabNavigation navigation;
  EXPECT_EQ(-1, navigation.index());
  EXPECT_EQ(0, navigation.unique_id());
  EXPECT_EQ(GURL(), SessionTypesTestHelper::GetReferrer(navigation).url);
  EXPECT_EQ(WebKit::WebReferrerPolicyDefault,
            SessionTypesTestHelper::GetReferrer(navigation).policy);
  EXPECT_EQ(GURL(), navigation.virtual_url());
  EXPECT_TRUE(navigation.title().empty());
  EXPECT_TRUE(navigation.content_state().empty());
  EXPECT_EQ(content::PAGE_TRANSITION_TYPED,
            SessionTypesTestHelper::GetTransitionType(navigation));
  EXPECT_FALSE(SessionTypesTestHelper::GetHasPostData(navigation));
  EXPECT_EQ(-1, SessionTypesTestHelper::GetPostID(navigation));
  EXPECT_EQ(GURL(), SessionTypesTestHelper::GetOriginalRequestURL(navigation));
  EXPECT_FALSE(SessionTypesTestHelper::GetIsOverridingUserAgent(navigation));
  EXPECT_TRUE(SessionTypesTestHelper::GetTimestamp(navigation).is_null());
}
TEST ( TabNavigationTest , DefaultInitializer ) { const TabNavigation navigation ; EXPECT_EQ ( -1 , navigation . index ( ) ) ; EXPECT_EQ ( 0 , navigation . unique_id ( ) ) ; EXPECT_EQ ( GURL ( ) , SessionTypesTestHelper :: GetReferrer ( navigation ) . url ) ; EXPECT_EQ ( WebKit :: WebReferrerPolicyDefault , SessionTypesTestHelper :: GetReferrer ( navigation ) . policy ) ; EXPECT_EQ ( GURL ( ) , navigation . virtual_url ( ) ) ; EXPECT_TRUE ( navigation . title ( ) . empty ( ) ) ; EXPECT_TRUE ( navigation . content_state ( ) . empty ( ) ) ; EXPECT_EQ ( content :: PAGE_TRANSITION_TYPED , SessionTypesTestHelper :: GetTransitionType ( navigation ) ) ; EXPECT_FALSE ( SessionTypesTestHelper :: GetHasPostData ( navigation ) ) ; EXPECT_EQ ( -1 , SessionTypesTestHelper :: GetPostID ( navigation ) ) ; EXPECT_EQ ( GURL ( ) , SessionTypesTestHelper :: GetOriginalRequestURL ( navigation ) ) ; EXPECT_FALSE ( SessionTypesTestHelper :: GetIsOverridingUserAgent ( navigation ) ) ; EXPECT_TRUE ( SessionTypesTestHelper :: GetTimestamp ( navigation ) . is_null ( ) ) ; }
Create a default TabNavigation.
Create a default TabNavigation .