2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <gtest/gtest.h>
22 #include "system_settings.h"
23 #include "mocks/sstt_mock.h"
26 #include "sst_interface.h"
30 TEST(SstInterfaceTest, getInterfaceERR)
32 system_settings_key_e key[] = {
33 SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN,
34 SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN,
35 SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE,
36 SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION,
37 SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE,
38 SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,
39 SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,
40 SYSTEM_SETTINGS_KEY_ULTRA_DATA_SAVE,
41 SYSTEM_SETTINGS_KEY_ACCESSIBILITY_GRAYSCALE,
42 SYSTEM_SETTINGS_KEY_ACCESSIBILITY_NEGATIVE_COLOR,
43 SYSTEM_SETTINGS_KEY_ROTARY_EVENT_ENABLED
45 int cnt = sizeof(key) / sizeof(system_settings_key_e);
48 sstm_system_info_get_platform_string_setup(false);
49 sstm_system_info_get_platform_bool_setup(false);
50 for (int i = 0; i < cnt; i++) {
51 int ret = sst_get_interface(key[i], &iface);
52 EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED, ret);
54 sstm_system_info_get_platform_string_setup(true);
55 sstm_system_info_get_platform_bool_setup(true);