chrome/browser/sessions/session_types_unittest.cc
// Create a sync_pb::TabNavigation from the constants above.
Create a sync_pb::TabNavigation from the constants above.
Create a sync_pb :: TabNavigation from the constants above .
sync_pb::TabNavigation MakeSyncDataForTest() {
  sync_pb::TabNavigation sync_data;
  sync_data.set_virtual_url(kVirtualURL.spec());
  sync_data.set_referrer(kReferrer.url.spec());
  sync_data.set_title(UTF16ToUTF8(kTitle));
  sync_data.set_state(kContentState);
  sync_data.set_page_transition(
      sync_pb::SyncEnums_PageTransition_AUTO_SUBFRAME);
  sync_data.set_unique_id(kUniqueID);
  sync_data.set_timestamp(syncer::TimeToProtoTime(kTimestamp));
  sync_data.set_redirect_type(sync_pb::SyncEnums::CLIENT_REDIRECT);
  sync_data.set_navigation_home_page(true);
  return sync_data;
}
sync_pb :: TabNavigation MakeSyncDataForTest ( ) { sync_pb :: TabNavigation sync_data ; sync_data . set_virtual_url ( kVirtualURL . spec ( ) ) ; sync_data . set_referrer ( kReferrer . url . spec ( ) ) ; sync_data . set_title ( UTF16ToUTF8 ( kTitle ) ) ; sync_data . set_state ( kContentState ) ; sync_data . set_page_transition ( sync_pb :: SyncEnums_PageTransition_AUTO_SUBFRAME ) ; sync_data . set_unique_id ( kUniqueID ) ; sync_data . set_timestamp ( syncer :: TimeToProtoTime ( kTimestamp ) ) ; sync_data . set_redirect_type ( sync_pb :: SyncEnums :: CLIENT_REDIRECT ) ; sync_data . set_navigation_home_page ( true ) ; return sync_data ; }
Create a sync_pb::TabNavigation from the constants above.
Create a sync_pb :: TabNavigation from the constants above .