Flutter Engine
paths_unittests.cc File Reference
#include "flutter/fml/paths.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Functions

 TEST (Paths, SanitizeURI)
 

Function Documentation

◆ TEST()

TEST ( Paths  ,
SanitizeURI   
)

Definition at line 9 of file paths_unittests.cc.

References fml::paths::SanitizeURIEscapedCharacters().

9  {
10  ASSERT_EQ(fml::paths::SanitizeURIEscapedCharacters("hello"), "hello");
12  ASSERT_EQ(fml::paths::SanitizeURIEscapedCharacters("hello%20world"),
13  "hello world");
15  "%5Chello%5cworld%20foo%20bar%21"),
16  "\\hello\\world foo bar!");
17 }
std::string SanitizeURIEscapedCharacters(const std::string &str)
Definition: paths.cc:32