kunit: fix up some style and syntax
just to be consistent with checkpatch style
Change-Id: I3ae67202cb5203f7ee3241cabda4929510ac6a74
Signed-off-by: Felix Guo <felixguo@google.com>
diff --git a/include/test/mock.h b/include/test/mock.h
index a55338c..fc209f9 100644
--- a/include/test/mock.h
+++ b/include/test/mock.h
@@ -256,8 +256,8 @@
*/
static inline struct mock_expectation *Times(
int times,
- struct mock_expectation *expectation
-) {
+ struct mock_expectation *expectation)
+{
expectation->min_calls_expected = times;
expectation->max_calls_expected = times;
return expectation;
@@ -271,8 +271,8 @@
* the same &struct mock_expectation passed in
*/
static inline struct mock_expectation *Never(
- struct mock_expectation *expectation
-) {
+ struct mock_expectation *expectation)
+{
return Times(0, expectation);
}
@@ -284,8 +284,8 @@
* the same &struct mock_expectation passed in
*/
static inline struct mock_expectation *RetireOnSaturation(
- struct mock_expectation *expectation
-) {
+ struct mock_expectation *expectation)
+{
expectation->retire_on_saturation = true;
return expectation;
}
@@ -306,8 +306,8 @@
*/
static inline struct mock_expectation *ActionOnMatch(
struct mock_expectation *expectation,
- struct mock_action *action
-) {
+ struct mock_action *action)
+{
expectation->action = action;
return expectation;
}
@@ -328,8 +328,8 @@
*/
static inline struct mock_expectation *Returns(
struct mock_expectation *expectation,
- struct mock_action *return_action
-) {
+ struct mock_action *return_action)
+{
return ActionOnMatch(expectation, return_action);
}