#include "components/language/content/browser/ulp_language_code_locator/s2langquadtree.h"
#include <string>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/s2cellid/src/s2/s2cellid.h"
namespace {
template <size_t numbits>
S2LangQuadTreeNode GetTree(const std::vector<std::string>& languages,
std::bitset<numbits> tree) { … }
}
namespace language {
TEST(S2LangQuadTreeTest, RootIsEmptyLeaf) { … }
TEST(S2LangQuadTreeTest, RootIsLeaf_FaceIsPresent) { … }
TEST(S2LangQuadTreeTest, RootIsLeaf_FaceChildGetsFaceLanguage) { … }
TEST(S2LangQuadTreeTest, RootThenSingleLeaf_LeafIsPresent) { … }
TEST(S2LangQuadTreeTest, RootThenSingleLeaf_ParentIsAbsent) { … }
TEST(S2LangQuadTreeTest, RootThenSingleLeaf_SiblingIsAbsent) { … }
TEST(S2LangQuadTreeTest, RootThenAllLeaves_LeavesArePresent) { … }
TEST(S2LangQuadTreeTest, RootThenAllLeaves_ParentIsAbsent) { … }
}