Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangr committed May 10, 2013
0 parents commit f405903
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.o
main
*.swp
build
16 changes: 16 additions & 0 deletions CMakeLists.txt
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)

1 change: 1 addition & 0 deletions ExpectToFailCompile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this branch is expected to fail compilation
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
the master branch is not used on this project
6 changes: 6 additions & 0 deletions SoundexTest.cpp
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"/>
}

7 changes: 7 additions & 0 deletions main.cpp
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();
}

0 comments on commit f405903

Please sign in to comment.