Fix the scan result param for mock 63/297663/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.092903 accepted/tizen/unified/20230823.173933 tizen_8.0_m2_release
authorDohyun Pyun <dh79.pyun@samsung.com>
Tue, 22 Aug 2023 09:07:11 +0000 (18:07 +0900)
committerDohyun Pyun <dh79.pyun@samsung.com>
Tue, 22 Aug 2023 09:07:11 +0000 (18:07 +0900)
Change-Id: I9e8274e3bc5df1f1f0dc539087a3979a203da20b
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
tests/unittest/mocks/thread-mock-dummy.cpp

index c137154..4097e40 100644 (file)
@@ -63,26 +63,26 @@ static GVariant *__make_scan_result()
        uint16_t panid = 0;
        uint16_t joiner_udp_port = 0;
        uint8_t channel = 0;
-       uint8_t rssi = 0;
+       int16_t rssi = 0;
        uint8_t lqi = 0;
        uint8_t version = 0;
        bool is_native = 0;
        bool is_joinable = 0;
 
        GVariantBuilder *scan_results_builder =
-               g_variant_builder_new(G_VARIANT_TYPE("a(tstayqqyyyybb)"));
+               g_variant_builder_new(G_VARIANT_TYPE("a(tstayqqynyybb)"));
 
        GVariantBuilder *steering_data_builder =
                g_variant_builder_new(G_VARIANT_TYPE("ay"));
        g_variant_builder_add(steering_data_builder, "y", 1);
        g_variant_builder_add(steering_data_builder, "y", '\0');
 
-       g_variant_builder_add(scan_results_builder, "(tstayqqyyyybb)",
+       g_variant_builder_add(scan_results_builder, "(tstayqqynyybb)",
                ext_address, network_name, ext_panid, steering_data_builder,
                panid, joiner_udp_port, channel, rssi, lqi, version,
                is_native, is_joinable);
 
-       GVariant *scan_results = g_variant_new("(a(tstayqqyyyybb))", scan_results_builder);
+       GVariant *scan_results = g_variant_new("(a(tstayqqynyybb))", scan_results_builder);
 
        g_variant_builder_unref(scan_results_builder);