Home
last modified time | relevance | path

Searched refs:MyString (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/third_party/googletest/googletest/samples/
Dsample2.h41 class MyString {
44 const MyString& operator=(const MyString& rhs);
55 MyString() : c_string_(NULL) {} in MyString() function
58 explicit MyString(const char* a_c_string) : c_string_(NULL) { in MyString() function
63 MyString(const MyString& string) : c_string_(NULL) { in MyString() function
71 ~MyString() { delete[] c_string_; } in ~MyString()
Dsample2_unittest.cc49 TEST(MyString, DefaultConstructor) { in TEST() argument
50 const MyString s; in TEST()
80 TEST(MyString, ConstructorFromCString) { in TEST() argument
81 const MyString s(kHelloString); in TEST()
88 TEST(MyString, CopyConstructor) { in TEST() argument
89 const MyString s1(kHelloString); in TEST()
90 const MyString s2 = s1; in TEST()
95 TEST(MyString, Set) { in TEST() argument
96 MyString s; in TEST()
Dsample2.cc39 const char* MyString::CloneCString(const char* a_c_string) { in CloneCString()
51 void MyString::Set(const char* a_c_string) { in Set()
53 const char* const temp = MyString::CloneCString(a_c_string); in Set()