Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d68ecfe4 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7574892 from 6ba5073c to sc-release

Change-Id: I805c5a9aa37bf9a6625c2d5fc58cf5a4b9e4c577
parents 4cd5de72 6ba5073c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ TEST_F(PropertiesTest, test_default_value) {
}

TEST_F(PropertiesTest, test_successfull_set_and_get_value) {
#if !defined(OS_GENERIC)
  char value[PROPERTY_VALUE_MAX] = "nothing_interesting";
  int ret = osi_property_set("very.useful.set.test", value);
  ASSERT_EQ(0, ret);
@@ -38,6 +39,7 @@ TEST_F(PropertiesTest, test_successfull_set_and_get_value) {
  char received[PROPERTY_VALUE_MAX];
  osi_property_get("very.useful.set.test", received, NULL);
  ASSERT_STREQ(received, "nothing_interesting");
#endif
}

TEST_F(PropertiesTest, test_default_value_int32) {
@@ -47,10 +49,12 @@ TEST_F(PropertiesTest, test_default_value_int32) {
}

TEST_F(PropertiesTest, test_successfull_set_and_get_value_int32) {
#if !defined(OS_GENERIC)
  char value[PROPERTY_VALUE_MAX] = "42";
  int ret = osi_property_set("very.useful.set.test", value);
  ASSERT_EQ(0, ret);

  int32_t received = osi_property_get_int32("very.useful.set.test", 84);
  ASSERT_EQ(received, 42);
#endif
}
+1 −1

File changed.

Contains only whitespace changes.