aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock-printers_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-16 17:38:08 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-16 17:38:08 +0000
commit4bd79e4f25a86f3a2a99f6af06cc43cdacc55853 (patch)
tree7500e3e892696d384d320f8c6c95320d1e3c58b7 /test/gmock-printers_test.cc
parentf5e1ce5b9237edbc2e524ae9ebcb2452dc842937 (diff)
downloadgoogletest-4bd79e4f25a86f3a2a99f6af06cc43cdacc55853.tar.gz
googletest-4bd79e4f25a86f3a2a99f6af06cc43cdacc55853.tar.bz2
googletest-4bd79e4f25a86f3a2a99f6af06cc43cdacc55853.zip
Simplifies the definition of NativeArray. Works around a VC bug in StrictMock & NiceMock.
Diffstat (limited to 'test/gmock-printers_test.cc')
-rw-r--r--test/gmock-printers_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gmock-printers_test.cc b/test/gmock-printers_test.cc
index af2e83c0..0eb8e094 100644
--- a/test/gmock-printers_test.cc
+++ b/test/gmock-printers_test.cc
@@ -790,14 +790,14 @@ TEST(PrintStlContainerTest, NestedContainer) {
}
TEST(PrintStlContainerTest, OneDimensionalNativeArray) {
- const int a[] = { 1, 2, 3 };
- NativeArray<int> b(a, kReference);
+ const int a[3] = { 1, 2, 3 };
+ NativeArray<int> b(a, 3, kReference);
EXPECT_EQ("{ 1, 2, 3 }", Print(b));
}
TEST(PrintStlContainerTest, TwoDimensionalNativeArray) {
- const int a[][3] = { { 1, 2, 3 }, { 4, 5, 6 } };
- NativeArray<int[3]> b(a, kReference);
+ const int a[2][3] = { { 1, 2, 3 }, { 4, 5, 6 } };
+ NativeArray<int[3]> b(a, 2, kReference);
EXPECT_EQ("{ { 1, 2, 3 }, { 4, 5, 6 } }", Print(b));
}