Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
fml
paths_unittests.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "flutter/fml/paths.h"
6
7
#include "gtest/gtest.h"
8
9
TEST
(Paths, SanitizeURI) {
10
ASSERT_EQ(
fml::paths::SanitizeURIEscapedCharacters
(
"hello"
),
"hello"
);
11
ASSERT_EQ(
fml::paths::SanitizeURIEscapedCharacters
(
""
),
""
);
12
ASSERT_EQ(
fml::paths::SanitizeURIEscapedCharacters
(
"hello%20world"
),
13
"hello world"
);
14
ASSERT_EQ(
fml::paths::SanitizeURIEscapedCharacters
(
15
"%5Chello%5cworld%20foo%20bar%21"
),
16
"\\hello\\world foo bar!"
);
17
}
TEST
#define TEST(S, s, D, expected)
Definition
FitsInTest.cpp:15
fml::paths::SanitizeURIEscapedCharacters
std::string SanitizeURIEscapedCharacters(const std::string &str)
Definition
paths.cc:32
Generated on Fri Apr 26 2024 06:14:05 for Flutter Engine by
1.9.8