Lines Matching refs:system_properties_
35 MockSystemProperties system_properties_; member in art::tools::__anon078fcaf70111::SystemPropertiesTest
39 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("value_1")); in TEST_F()
40 EXPECT_EQ(system_properties_.Get("key_1", /*default_value=*/"default"), "value_1"); in TEST_F()
44 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
45 EXPECT_CALL(system_properties_, GetProperty("key_2")).WillOnce(Return("value_2")); in TEST_F()
46 EXPECT_CALL(system_properties_, GetProperty("key_3")).WillOnce(Return("value_3")); in TEST_F()
47 EXPECT_EQ(system_properties_.Get("key_1", "key_2", "key_3", /*default_value=*/"default"), in TEST_F()
52 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
53 EXPECT_EQ(system_properties_.Get("key_1", /*default_value=*/"default"), "default"); in TEST_F()
57 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("value_1")); in TEST_F()
58 EXPECT_EQ(system_properties_.GetOrEmpty("key_1"), "value_1"); in TEST_F()
62 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
63 EXPECT_CALL(system_properties_, GetProperty("key_2")).WillOnce(Return("value_2")); in TEST_F()
64 EXPECT_CALL(system_properties_, GetProperty("key_3")).WillOnce(Return("value_3")); in TEST_F()
65 EXPECT_EQ(system_properties_.GetOrEmpty("key_1", "key_2", "key_3"), "value_2"); in TEST_F()
69 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
70 EXPECT_EQ(system_properties_.GetOrEmpty("key_1"), ""); in TEST_F()
74 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("true")); in TEST_F()
75 EXPECT_EQ(system_properties_.GetBool("key_1", /*default_value=*/false), true); in TEST_F()
79 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("false")); in TEST_F()
80 EXPECT_EQ(system_properties_.GetBool("key_1", /*default_value=*/true), false); in TEST_F()
84 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
85 EXPECT_CALL(system_properties_, GetProperty("key_2")).WillOnce(Return("true")); in TEST_F()
86 EXPECT_CALL(system_properties_, GetProperty("key_3")).WillOnce(Return("false")); in TEST_F()
87 EXPECT_EQ(system_properties_.GetBool("key_1", "key_2", "key_3", /*default_value=*/false), true); in TEST_F()
91 EXPECT_CALL(system_properties_, GetProperty("key_1")).WillOnce(Return("")); in TEST_F()
92 EXPECT_EQ(system_properties_.GetBool("key_1", /*default_value=*/true), true); in TEST_F()