This source file includes following definitions.
- TEST
- TEST
- TEST
- TEST
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
namespace url {
namespace {
TEST(OriginTest, constructEmpty) {
Origin origin;
EXPECT_EQ("null", origin.string());
}
TEST(OriginTest, constructNull) {
Origin origin("null");
EXPECT_EQ("null", origin.string());
}
TEST(OriginTest, constructValidOrigin) {
Origin origin("http://example.com:8080");
EXPECT_EQ("http://example.com:8080", origin.string());
}
TEST(OriginTest, constructValidOriginWithoutPort) {
Origin origin("wss://example2.com");
EXPECT_EQ("wss://example2.com", origin.string());
}
}
}