Flutter Engine
The Flutter Engine
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
}
fml::paths::SanitizeURIEscapedCharacters
std::string SanitizeURIEscapedCharacters(const std::string &str)
Definition:
paths.cc:32
TEST
TEST(Paths, SanitizeURI)
Definition:
paths_unittests.cc:9
Generated on Sun Jun 23 2024 21:54:58 for Flutter Engine by
1.9.4