Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestURL.cpp File Reference
#include "URL.h"
#include <gtest/gtest.h>

Classes

struct  TestURLGetWithoutUserDetailsData
 
class  TestURLGetWithoutUserDetails
 

Functions

std::ostream & operator<< (std::ostream &os, const TestURLGetWithoutUserDetailsData &rhs)
 
 TEST_P (TestURLGetWithoutUserDetails, GetWithoutUserDetails)
 
 INSTANTIATE_TEST_SUITE_P (URL, TestURLGetWithoutUserDetails, ValuesIn(values))
 

Variables

const TestURLGetWithoutUserDetailsData values []
 

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( URL ,
TestURLGetWithoutUserDetails ,
ValuesIn(values)  )

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const TestURLGetWithoutUserDetailsData & rhs )

◆ TEST_P()

TEST_P ( TestURLGetWithoutUserDetails ,
GetWithoutUserDetails  )

Variable Documentation

◆ values

Initial value:
= {
{ std::string("smb://example.com/example"), std::string("smb://example.com/example"), false },
{ std::string("smb://example.com/example"), std::string("smb://example.com/example"), true },
{ std::string("smb://god:universe@example.com/example"), std::string("smb://example.com/example"), false },
{ std::string("smb://god@example.com/example"), std::string("smb://USERNAME@example.com/example"), true },
{ std::string("smb://god:universe@example.com/example"), std::string("smb://USERNAME:PASSWORD@example.com/example"), true },
{ std::string("http://god:universe@example.com:8448/example|auth=digest"), std::string("http://USERNAME:PASSWORD@example.com:8448/example|auth=digest"), true },
{ std::string("smb://fd00::1/example"), std::string("smb://fd00::1/example"), false },
{ std::string("smb://fd00::1/example"), std::string("smb://fd00::1/example"), true },
{ std::string("smb://[fd00::1]:8080/example"), std::string("smb://[fd00::1]:8080/example"), false },
{ std::string("smb://[fd00::1]:8080/example"), std::string("smb://[fd00::1]:8080/example"), true },
{ std::string("smb://god:universe@[fd00::1]:8080/example"), std::string("smb://[fd00::1]:8080/example"), false },
{ std::string("smb://god@[fd00::1]:8080/example"), std::string("smb://USERNAME@[fd00::1]:8080/example"), true },
{ std::string("smb://god:universe@fd00::1/example"), std::string("smb://USERNAME:PASSWORD@fd00::1/example"), true },
{ std::string("http://god:universe@[fd00::1]:8448/example|auth=digest"), std::string("http://USERNAME:PASSWORD@[fd00::1]:8448/example|auth=digest"), true },
{ std::string("smb://00ff:1:0000:abde::/example"), std::string("smb://00ff:1:0000:abde::/example"), true },
{ std::string("smb://god:universe@[00ff:1:0000:abde::]:8080/example"), std::string("smb://[00ff:1:0000:abde::]:8080/example"), false },
{ std::string("smb://god@[00ff:1:0000:abde::]:8080/example"), std::string("smb://USERNAME@[00ff:1:0000:abde::]:8080/example"), true },
{ std::string("smb://god:universe@00ff:1:0000:abde::/example"), std::string("smb://USERNAME:PASSWORD@00ff:1:0000:abde::/example"), true },
{ std::string("http://god:universe@[00ff:1:0000:abde::]:8448/example|auth=digest"), std::string("http://USERNAME:PASSWORD@[00ff:1:0000:abde::]:8448/example|auth=digest"), true },
{ std::string("smb://milkyway;god:universe@example.com/example"), std::string("smb://DOMAIN;USERNAME:PASSWORD@example.com/example"), true },
{ std::string("smb://milkyway;god@example.com/example"), std::string("smb://DOMAIN;USERNAME@example.com/example"), true },
{ std::string("smb://milkyway;@example.com/example"), std::string("smb://example.com/example"), true },
{ std::string("smb://milkyway;god:universe@example.com/example"), std::string("smb://example.com/example"), false },
{ std::string("smb://milkyway;god@example.com/example"), std::string("smb://example.com/example"), false },
{ std::string("smb://milkyway;@example.com/example"), std::string("smb://example.com/example"), false },
}