-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/17' into develop
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
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
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
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,26 @@ | ||
/* | ||
* Test the MockGpioBasic class. | ||
* Only constructor is tested. | ||
*/ | ||
|
||
#include <gmock/gmock.h> | ||
#include <gtest/gtest.h> | ||
|
||
#include "gpiobasic.hpp" | ||
#include "sdkwrapper.hpp" | ||
|
||
class MockGpioBasicTest : public ::testing::Test { | ||
protected: | ||
virtual void SetUp() { gpio = new rpp_driver::MockGpioBasic(sdk_); } | ||
|
||
virtual void TearDown() { delete gpio; } | ||
|
||
::rpp_driver::MockSdkWrapper sdk_; | ||
::rpp_driver::MockGpioBasic *gpio; | ||
}; | ||
|
||
/* | ||
* In this test case, we test teh MockGpioBasic is surely able to compile. | ||
* So, none of the other methods are tested. | ||
*/ | ||
TEST_F(MockGpioBasicTest, constructor) {} |