summaryrefslogtreecommitdiff
path: root/mock/notification_mock.h
diff options
context:
space:
mode:
authorjh9216.park <jh9216.park@samsung.com>2021-12-15 03:31:56 -0500
committerjh9216.park <jh9216.park@samsung.com>2021-12-17 03:26:45 -0500
commit8bf87c5a88f37553256fce2e9fd67a17dfcb1652 (patch)
treee0ad0c9db9d2661df2a4685c666618c5295b9878 /mock/notification_mock.h
parentfe9459e7c5dc8fb4109ed511dfd275f42ab2d792 (diff)
downloadalarm-manager-8bf87c5a88f37553256fce2e9fd67a17dfcb1652.tar.gz
alarm-manager-8bf87c5a88f37553256fce2e9fd67a17dfcb1652.tar.bz2
alarm-manager-8bf87c5a88f37553256fce2e9fd67a17dfcb1652.zip
Use gmock instead of fff
Change-Id: If791b2f305f4c7e6cdf9f3c94bd04282b846a8da Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Diffstat (limited to 'mock/notification_mock.h')
-rw-r--r--mock/notification_mock.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/mock/notification_mock.h b/mock/notification_mock.h
new file mode 100644
index 0000000..3db4736
--- /dev/null
+++ b/mock/notification_mock.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef UNIT_TESTS_MOCK_NOTIFICATION_MOCK_H_
+#define UNIT_TESTS_MOCK_NOTIFICATION_MOCK_H_
+
+#include <gmock/gmock.h>
+#include <glib.h>
+#include <notification.h>
+#include <notification_ipc.h>
+
+#include "module_mock.h"
+
+class NotificationMock : public virtual ModuleMock {
+ public:
+ NotificationMock() {
+ using ::testing::_;
+ using ::testing::Return;
+ using ::testing::Invoke;
+ }
+
+ MOCK_METHOD(GVariant*, notification_ipc_make_gvariant_from_noti,
+ (notification_h, bool));
+};
+
+#endif // UNIT_TESTS_MOCK_NOTIFICATION_MOCK_H_