#include "components/sessions/core/serialized_navigation_entry_test_helper.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "components/sessions/core/serialized_navigation_entry.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace sessions {
namespace test_data {
const int kIndex = …;
const int kUniqueID = …;
const int kReferrerPolicy = …;
const std::u16string kTitle = …;
const std::string kEncodedPageState = …;
const ui::PageTransition kTransitionType = …;
const bool kHasPostData = …;
const int64_t kPostID = …;
const bool kIsOverridingUserAgent = …;
const base::Time kTimestamp = …;
const int kHttpStatusCode = …;
const SerializedNavigationEntry::PasswordState kPasswordState = …;
const std::string kExtendedInfoKey1 = …;
const std::string kExtendedInfoKey2 = …;
const std::string kExtendedInfoValue1 = …;
const std::string kExtendedInfoValue2 = …;
const int64_t kTaskId = …;
const int64_t kParentTaskId = …;
const int64_t kRootTaskId = …;
}
void SerializedNavigationEntryTestHelper::ExpectNavigationEquals(
const SerializedNavigationEntry& expected,
const SerializedNavigationEntry& actual) { … }
SerializedNavigationEntry
SerializedNavigationEntryTestHelper::CreateNavigationForTest() { … }
void SerializedNavigationEntryTestHelper::SetReferrerPolicy(
int policy,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetVirtualURL(
const GURL& virtual_url,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetEncodedPageState(
const std::string& encoded_page_state,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetTransitionType(
ui::PageTransition transition_type,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetHasPostData(
bool has_post_data,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetOriginalRequestURL(
const GURL& original_request_url,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetIsOverridingUserAgent(
bool is_overriding_user_agent,
SerializedNavigationEntry* navigation) { … }
void SerializedNavigationEntryTestHelper::SetTimestamp(
base::Time timestamp,
SerializedNavigationEntry* navigation) { … }
}