#include "components/shared_highlighting/core/common/fragment_directives_utils.h"
#include "components/shared_highlighting/core/common/fragment_directives_constants.h"
#include "components/shared_highlighting/core/common/text_fragment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace shared_highlighting {
namespace {
TEST(TextFragmentsUtilsTest, SplitUrlTextFragmentDirective_NoDelimiter) { … }
TEST(TextFragmentsUtilsTest,
SplitUrlTextFragmentDirective_NormalUrlWithFragment) { … }
TEST(TextFragmentsUtilsTest, SplitUrlTextFragmentDirective_JustFragment) { … }
TEST(TextFragmentsUtilsTest,
SplitUrlTextFragmentDirective_OtherAnchorBeforeFragment) { … }
TEST(TextFragmentsUtilsTest, ParseTextFragments) { … }
TEST(TextFragmentsUtilsTest, ExtractTextFragments) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragments) { … }
TEST(TextFragmentsUtilsTest,
RemoveTextFragmentsAndSelectorFragmentsAndKeepOtherSelectors) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragmentsWithNoFragments) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragmentsParameterBeforeDelimiter) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragmentsParameterIsSubstring) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragmentsWithNonTextFragment) { … }
TEST(TextFragmentsUtilsTest, RemoveTextFragmentsMultipleDelimiters) { … }
TEST(TextFragmentsUtilsTest, AppendFragmentDirectivesOneFragment) { … }
TEST(TextFragmentsUtilsTest, AppendFragmentDirectivesURLWithPound) { … }
TEST(TextFragmentsUtilsTest, AppendFragmentDirectivesURLWithPoundAndValue) { … }
TEST(TextFragmentsUtilsTest,
AppendFragmentDirectivesURLWithPoundAndExistingFragment) { … }
TEST(TextFragmentsUtilsTest,
AppendFragmentDirectivesURLWithPoundAndExistingFragmentAndAnchor) { … }
TEST(TextFragmentsUtilsTest, AppendFragmentDirectivesTwoFragments) { … }
TEST(TextFragmentsUtilsTest,
AppendSelectorsURLWithPoundAndExistingFragmentAndAnchor) { … }
TEST(TextFragmentsUtilsTest, AppendSelectorsTwoFragments) { … }
}
}