proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
UtilTest.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
*/
10
#include <
folly/portability/GTest.h
>
11
#include <
proxygen/lib/utils/UtilInl.h
>
12
13
using namespace
proxygen
;
14
15
TEST
(UtilTest, CaseInsensitiveEqual) {
16
ASSERT_TRUE
(
caseInsensitiveEqual
(
"foo"
,
"FOO"
));
17
ASSERT_TRUE
(
caseInsensitiveEqual
(
std::string
(
"foo"
),
"FOO"
));
18
ASSERT_FALSE
(
caseInsensitiveEqual
(
std::string
(
"foo"
),
"FOO2"
));
19
ASSERT_FALSE
(
caseInsensitiveEqual
(
"fo"
,
"FOO"
));
20
ASSERT_FALSE
(
caseInsensitiveEqual
(
"FO"
,
"FOO"
));
21
}
UtilInl.h
proxygen::caseInsensitiveEqual
bool caseInsensitiveEqual(folly::StringPiece s, folly::StringPiece t)
Definition:
UtilInl.h:17
GTest.h
TEST
TEST(UtilTest, CaseInsensitiveEqual)
Definition:
UtilTest.cpp:15
string
const char * string
Definition:
Conv.cpp:212
proxygen
Definition:
ExMessageHandler.h:14
ASSERT_FALSE
#define ASSERT_FALSE(condition)
Definition:
gtest.h:1868
ASSERT_TRUE
#define ASSERT_TRUE(condition)
Definition:
gtest.h:1865
proxygen
lib
utils
test
UtilTest.cpp
Generated by
1.8.11