Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Functions
gtest.h File Reference
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"

Go to the source code of this file.

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 
 testing
 namespace net_instaweb
 

Macros

#define EXPECT_HAS_SUBSTR(needle, haystack)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSUBSTR, needle, haystack)
 
#define EXPECT_HAS_SUBSTR_NE(needle, haystack)   EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSUBSTRNE, needle, haystack)
 

Functions

GoogleString net_instaweb::GTestSrcDir ()
 
GoogleString net_instaweb::GTestTempDir ()
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const StringPiece &expected, const StringPiece &actual)
 Allows EXPECT_STREQ to be used on StringPiece.
 
GTEST_API_ AssertionResult testing::internal::CmpHelperSTRNE (const char *expected_expression, const char *actual_expression, const StringPiece &expected, const StringPiece &actual)
 Allows EXPECT_STRNE to be used on StringPiece.
 
template<typename StringType >
GTEST_API_ AssertionResult testing::internal::CmpHelperSUBSTR (const char *haystack_expression, const char *needle_expression, const StringType haystack, const StringPiece &needle)
 
template<typename StringType1 , typename StringType2 >
GTEST_API_ AssertionResult testing::internal::CmpHelperSUBSTR (const char *haystack_expression, const char *needle_expression, const StringType1 haystack, const StringType2 needle)
 
template<typename StringType >
GTEST_API_ AssertionResult testing::internal::CmpHelperSUBSTRNE (const char *haystack_expression, const char *needle_expression, const StringType haystack, const StringPiece &needle)
 
template<typename StringType1 , typename StringType2 >
GTEST_API_ AssertionResult testing::internal::CmpHelperSUBSTRNE (const char *haystack_expression, const char *needle_expression, const StringType1 haystack, const StringType2 needle)
 

Macro Definition Documentation

#define EXPECT_HAS_SUBSTR (   needle,
  haystack 
)    EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSUBSTR, needle, haystack)

EXPECT_SUBSTR and EXPECT_SUBSTR_NE allows a simple way to search for a substring. Works on StringPiece, char* and GoogleString.