Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
uri_test.cc File Reference
#include "vm/unit_test.h"
#include "platform/uri.h"
#include "platform/utils.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define EXPECT_USTREQ(expected, actual)   EXPECT_STREQ(expected, actual.get())
 
#define LH   "http://localhost"
 

Functions

 dart::TEST_CASE (ParseUri_WithScheme_NoQueryNoUser)
 
 dart::TEST_CASE (ParseUri_WithScheme_WithQuery)
 
 dart::TEST_CASE (ParseUri_WithScheme_WithFragment)
 
 dart::TEST_CASE (ParseUri_WithScheme_WithQueryWithFragment)
 
 dart::TEST_CASE (ParseUri_WithScheme_WithUser)
 
 dart::TEST_CASE (ParseUri_WithScheme_ShortPath)
 
 dart::TEST_CASE (ParseUri_WithScheme_EmptyPath)
 
 dart::TEST_CASE (ParseUri_WithScheme_Rootless1)
 
 dart::TEST_CASE (ParseUri_WithScheme_Rootless2)
 
 dart::TEST_CASE (ParseUri_NoScheme_AbsPath_WithAuthority)
 
 dart::TEST_CASE (ParseUri_NoScheme_AbsPath_NoAuthority)
 
 dart::TEST_CASE (ParseUri_NoScheme_AbsPath_StrayColon)
 
 dart::TEST_CASE (ParseUri_NoScheme_Rootless1)
 
 dart::TEST_CASE (ParseUri_NoScheme_Rootless2)
 
 dart::TEST_CASE (ParseUri_NoScheme_Empty)
 
 dart::TEST_CASE (ParseUri_NoScheme_QueryOnly)
 
 dart::TEST_CASE (ParseUri_NoScheme_FragmentOnly)
 
 dart::TEST_CASE (ParseUri_LowerCaseScheme)
 
 dart::TEST_CASE (ParseUri_NormalizeEscapes_PathQueryFragment)
 
 dart::TEST_CASE (ParseUri_NormalizeEscapes_UppercaseEscapesPreferred)
 
 dart::TEST_CASE (ParseUri_NormalizeEscapes_Authority)
 
 dart::TEST_CASE (ParseUri_NormalizeEscapes_UppercaseEscapeInHost)
 
 dart::TEST_CASE (ParseUri_BrokenEscapeSequence)
 
 dart::TEST_CASE (ResolveUri_WithScheme_NoAuthorityNoQuery)
 
 dart::TEST_CASE (ResolveUri_WithScheme_WithAuthorityWithQuery)
 
 dart::TEST_CASE (ResolveUri_NoScheme_WithAuthority)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_AbsolutePath)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_RelativePath)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_RelativePathEmptyBasePath)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_RelativePathWeirdBasePath)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_EmptyPath)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_EmptyPathWithQuery)
 
 dart::TEST_CASE (ResolveUri_NoSchemeNoAuthority_EmptyPathWithFragment)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveOneDotSegment)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveTwoDotSegments)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveOneDotDotSegment)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveTwoDotDotSegments)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveTooManyDotDotSegments)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveDotSegmentsNothingLeft1)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveDotSegmentsNothingLeft2)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveDotSegmentsInitialPrefix)
 
 dart::TEST_CASE (ResolveUri_RemoveDots_RemoveDotSegmentsMixed)
 
 dart::TEST_CASE (ResolveUri_NormalizeEscapes_PathQueryFragment)
 
 dart::TEST_CASE (ResolveUri_NormalizeEscapes_UppercaseHexPreferred)
 
 dart::TEST_CASE (ResolveUri_NormalizeEscapes_Authority)
 
 dart::TEST_CASE (ResolveUri_NormalizeEscapes_BrokenEscapeSequence)
 
 dart::TEST_CASE (ResolveUri_DataUri)
 
 dart::TEST_CASE (ResolveUri_RelativeBase_NotImplemented)
 
CStringUniquePtr dart::TestResolve (const char *base_uri, const char *uri)
 
 dart::TEST_CASE (ResolveUri_TestUriPerRFCs)
 
 dart::TEST_CASE (ResolveUri_MoreDotSegmentTests)
 
 dart::TEST_CASE (ResolveUri_WindowsPaths_Forwardslash_NoScheme)
 
 dart::TEST_CASE (ResolveUri_WindowsPaths_Forwardslash_FileScheme)
 
 dart::TEST_CASE (ResolveUri_WindowsPaths_Backslash)
 

Macro Definition Documentation

◆ EXPECT_USTREQ

#define EXPECT_USTREQ (   expected,
  actual 
)    EXPECT_STREQ(expected, actual.get())

Definition at line 12 of file uri_test.cc.

◆ LH

#define LH   "http://localhost"