Home
last modified time | relevance | path

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

/external/gtest/samples/
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.h41 class MyString {
44 const MyString& operator=(const MyString& rhs);
56 MyString() : c_string_(NULL) {} in MyString() function
59 explicit MyString(const char * c_string) : c_string_(NULL) { in MyString() function
64 MyString(const MyString& string) : c_string_(NULL) { in MyString() function
72 ~MyString() { delete[] c_string_; } in ~MyString()
Dsample2.cc39 const char * MyString::CloneCString(const char * c_string) { in CloneCString()
51 void MyString::Set(const char * c_string) { in Set()
53 const char * const temp = MyString::CloneCString(c_string); in Set()
/external/protobuf/gtest/samples/
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.h41 class MyString {
44 const MyString& operator=(const MyString& rhs);
56 MyString() : c_string_(NULL) {} in MyString() function
59 explicit MyString(const char * c_string) : c_string_(NULL) { in MyString() function
64 MyString(const MyString& string) : c_string_(NULL) { in MyString() function
72 ~MyString() { delete[] c_string_; } in ~MyString()
Dsample2.cc39 const char * MyString::CloneCString(const char * c_string) { in CloneCString()
51 void MyString::Set(const char * c_string) { in Set()
53 const char * const temp = MyString::CloneCString(c_string); in Set()