#include "net/third_party/uri_template/uri_template.h"
#include <memory>
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
string;
namespace uri_template {
namespace {
std::unordered_map<string, string> parameters_ = …;
void CheckExpansion(const string& uri_template,
const string& expected_expansion,
bool expected_validity = true,
const std::set<string>* expected_vars = nullptr) { … }
class UriTemplateTest : public testing::Test { … };
TEST_F(UriTemplateTest, TestLevel1Templates) { … }
TEST_F(UriTemplateTest, TestLevel2Templates) { … }
TEST_F(UriTemplateTest, TestLevel3Templates) { … }
TEST_F(UriTemplateTest, TestMalformed) { … }
TEST_F(UriTemplateTest, TestVariableSet) { … }
}
}