projects
/
platform
/
upstream
/
gtest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.12.0
[platform/upstream/gtest.git]
/
googletest
/
samples
/
sample2_unittest.cc
diff --git
a/googletest/samples/sample2_unittest.cc
b/googletest/samples/sample2_unittest.cc
index
41e31c1
..
cd734f9
100644
(file)
--- a/
googletest/samples/sample2_unittest.cc
+++ b/
googletest/samples/sample2_unittest.cc
@@
-38,6
+38,7
@@
// needed.
#include "sample2.h"
// needed.
#include "sample2.h"
+
#include "gtest/gtest.h"
namespace {
// In this example, we test the MyString class (a simple string).
#include "gtest/gtest.h"
namespace {
// In this example, we test the MyString class (a simple string).
@@
-77,8
+78,7
@@
const char kHelloString[] = "Hello, world!";
TEST(MyString, ConstructorFromCString) {
const MyString s(kHelloString);
EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
TEST(MyString, ConstructorFromCString) {
const MyString s(kHelloString);
EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
- EXPECT_EQ(sizeof(kHelloString)/sizeof(kHelloString[0]) - 1,
- s.Length());
+ EXPECT_EQ(sizeof(kHelloString) / sizeof(kHelloString[0]) - 1, s.Length());
}
// Tests the copy c'tor.
}
// Tests the copy c'tor.