#include "components/sessions/content/content_serialized_navigation_builder.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/sessions/content/content_record_password_state.h"
#include "components/sessions/content/content_serialized_navigation_driver.h"
#include "components/sessions/content/extended_info_handler.h"
#include "components/sessions/content/navigation_task_id.h"
#include "components/sessions/core/serialized_navigation_entry.h"
#include "components/sessions/core/serialized_navigation_entry_test_helper.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/navigation_entry_restore_context.h"
#include "content/public/common/referrer.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/page_state/page_state.h"
namespace sessions {
namespace {
const char kExtendedInfoKey1[] = …;
const char kExtendedInfoValue1[] = …;
const char kExtendedInfoKey2[] = …;
const char kExtendedInfoValue2[] = …;
struct TestData : public base::SupportsUserData::Data { … };
class TestExtendedInfoHandler : public ExtendedInfoHandler { … };
std::unique_ptr<content::NavigationEntry> MakeNavigationEntryForTest() { … }
void SetExtendedInfoForTest(content::NavigationEntry* entry) { … }
}
class ContentSerializedNavigationBuilderTest : public testing::Test { … };
TEST_F(ContentSerializedNavigationBuilderTest, FromNavigationEntry) { … }
TEST_F(ContentSerializedNavigationBuilderTest,
FromNavigationEntrySerializationOptions) { … }
TEST_F(ContentSerializedNavigationBuilderTest, ToNavigationEntry) { … }
TEST_F(ContentSerializedNavigationBuilderTest, ToNavigationEntries) { … }
TEST_F(ContentSerializedNavigationBuilderTest, DeduplicateEntriesByURL) { … }
TEST_F(ContentSerializedNavigationBuilderTest, SetPasswordState) { … }
}