-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f405903
Showing
6 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.o | ||
main | ||
*.swp | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
project(chapterFirstExample) | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
include_directories($ENV{GMOCK_HOME}/include $ENV{GMOCK_HOME}/gtest/include) | ||
link_directories($ENV{GMOCK_HOME}/mybuild $ENV{GMOCK_HOME}/gtest/mybuild) | ||
add_definitions(-std=c++0x) | ||
set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall") | ||
|
||
set(sources | ||
main.cpp | ||
SoundexTest.cpp) | ||
add_executable(test ${sources}) | ||
target_link_libraries(test pthread) | ||
target_link_libraries(test gmock) | ||
target_link_libraries(test gtest) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this branch is expected to fail compilation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
the master branch is not used on this project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "gmock/gmock.h" //<label id="code.include"/> | ||
|
||
TEST(SoundexEncoding, RetainsSoleLetterOfOneLetterWord) { //<label id="code.test"/> | ||
Soundex soundex; //<label id="code.construct"/> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "gmock/gmock.h" | ||
|
||
int main(int argc, char** argv) { | ||
testing::InitGoogleMock(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} | ||
|