OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MyString
(Results
1 - 10
of
10
) sorted by null
/external/chromium/testing/gtest/samples/
sample2.h
41
class
MyString
{
44
const
MyString
& operator=(const
MyString
& rhs);
56
MyString
() : c_string_(NULL) {}
58
// Constructs a
MyString
by cloning a 0-terminated C string.
59
explicit
MyString
(const char* a_c_string) : c_string_(NULL) {
64
MyString
(const
MyString
& string) : c_string_(NULL) {
70
// D'tor.
MyString
is intended to be a final class, so the d'tor
72
~
MyString
() { delete[] c_string_;
[
all
...]
sample2_unittest.cc
46
// In this example, we test the
MyString
class (a simple string).
49
TEST(
MyString
, DefaultConstructor) {
50
const
MyString
s;
80
TEST(
MyString
, ConstructorFromCString) {
81
const
MyString
s(kHelloString);
88
TEST(
MyString
, CopyConstructor) {
89
const
MyString
s1(kHelloString);
90
const
MyString
s2 = s1;
95
TEST(
MyString
, Set) {
96
MyString
s
[
all
...]
sample2.cc
39
const char*
MyString
::CloneCString(const char* a_c_string) {
49
// Sets the 0-terminated C string this
MyString
object
51
void
MyString
::Set(const char* a_c_string) {
53
const char* const temp =
MyString
::CloneCString(a_c_string);
/external/gtest/samples/
sample2.h
41
class
MyString
{
44
const
MyString
& operator=(const
MyString
& rhs);
56
MyString
() : c_string_(NULL) {}
58
// Constructs a
MyString
by cloning a 0-terminated C string.
59
explicit
MyString
(const char* a_c_string) : c_string_(NULL) {
64
MyString
(const
MyString
& string) : c_string_(NULL) {
70
// D'tor.
MyString
is intended to be a final class, so the d'tor
72
~
MyString
() { delete[] c_string_;
[
all
...]
sample2_unittest.cc
46
// In this example, we test the
MyString
class (a simple string).
49
TEST(
MyString
, DefaultConstructor) {
50
const
MyString
s;
80
TEST(
MyString
, ConstructorFromCString) {
81
const
MyString
s(kHelloString);
88
TEST(
MyString
, CopyConstructor) {
89
const
MyString
s1(kHelloString);
90
const
MyString
s2 = s1;
95
TEST(
MyString
, Set) {
96
MyString
s
[
all
...]
sample2.cc
39
const char*
MyString
::CloneCString(const char* a_c_string) {
49
// Sets the 0-terminated C string this
MyString
object
51
void
MyString
::Set(const char* a_c_string) {
53
const char* const temp =
MyString
::CloneCString(a_c_string);
/external/protobuf/gtest/samples/
sample2.h
41
class
MyString
{
44
const
MyString
& operator=(const
MyString
& rhs);
56
MyString
() : c_string_(NULL) {}
58
// Constructs a
MyString
by cloning a 0-terminated C string.
59
explicit
MyString
(const char * c_string) : c_string_(NULL) {
64
MyString
(const
MyString
& string) : c_string_(NULL) {
70
// D'tor.
MyString
is intended to be a final class, so the d'tor
72
~
MyString
() { delete[] c_string_;
[
all
...]
sample2_unittest.cc
46
// In this example, we test the
MyString
class (a simple string).
49
TEST(
MyString
, DefaultConstructor) {
50
const
MyString
s;
80
TEST(
MyString
, ConstructorFromCString) {
81
const
MyString
s(kHelloString);
88
TEST(
MyString
, CopyConstructor) {
89
const
MyString
s1(kHelloString);
90
const
MyString
s2 = s1;
95
TEST(
MyString
, Set) {
96
MyString
s
[
all
...]
sample2.cc
39
const char *
MyString
::CloneCString(const char * c_string) {
49
// Sets the 0-terminated C string this
MyString
object
51
void
MyString
::Set(const char * c_string) {
53
const char * const temp =
MyString
::CloneCString(c_string);
/external/clang/test/SemaCXX/
warn-thread-safety-analysis.cpp
[
all
...]
Completed in 209 milliseconds