Lines Matching refs:i32
302 int32_t i32; in TEST() local
303 ASSERT_TRUE(item.getInt32("value", &i32)); in TEST()
304 ASSERT_EQ(6, i32); in TEST()
306 ASSERT_TRUE(item.getInt32("bar", &i32)); in TEST()
307 ASSERT_EQ(3, i32); in TEST()
367 int32_t i32; in TEST() local
368 ASSERT_TRUE(item.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
369 ASSERT_EQ((int32_t)i, i32); in TEST()
384 int32_t i32; in TEST() local
386 ASSERT_TRUE(item.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
387 ASSERT_EQ((int32_t)i, i32); in TEST()
389 ASSERT_FALSE(item.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
405 int32_t i32; in TEST() local
407 ASSERT_TRUE(item.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
408 ASSERT_EQ((int32_t)i, i32); in TEST()
410 ASSERT_FALSE(item.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
426 int32_t i32; in TEST() local
427 ASSERT_TRUE(item.getInt32("convert", &i32)); // check it is i32 and 2 (123 is discarded). in TEST()
428 ASSERT_EQ(2, i32); in TEST()
484 int32_t i32; in TEST() local
485 ASSERT_TRUE(prop.get(&i32)); in TEST()
486 ASSERT_EQ(1, i32); in TEST()
538 int32_t i32; in TEST() local
539 ASSERT_TRUE(prop.get(&i32)); in TEST()
540 ASSERT_EQ(1, i32); in TEST()
590 int32_t i32; in TEST() local
591 ASSERT_TRUE(item2.getInt32(std::to_string(i).c_str(), &i32)); in TEST()
592 ASSERT_EQ((int32_t)i, i32); in TEST()
609 int32_t i32; in TEST() local
610 ASSERT_EQ(NO_ERROR, timeMachine.get("Key", "i32", &i32, -1)); in TEST()
611 ASSERT_EQ(1, i32); in TEST()
626 i32 = 0; in TEST()
627 ASSERT_EQ(NO_ERROR, timeMachine.get("Key.i32", &i32, -1)); in TEST()
628 ASSERT_EQ(1, i32); in TEST()
665 int32_t i32; in TEST() local
666 ASSERT_EQ(NO_ERROR, timeMachine.get("Key1.one", &i32, -1)); in TEST()
667 ASSERT_EQ(1, i32); in TEST()
669 ASSERT_EQ(NO_ERROR, timeMachine.get("Key1.two", &i32, -1)); in TEST()
670 ASSERT_EQ(2, i32); in TEST()
672 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.three", &i32, -1)); in TEST()
674 ASSERT_EQ(NO_ERROR, timeMachine.get("Key2.three", &i32, -1)); in TEST()
675 ASSERT_EQ(3, i32); in TEST()
677 ASSERT_EQ(NO_ERROR, timeMachine.get("Key1.four", &i32, -1)); in TEST()
678 ASSERT_EQ(4, i32); in TEST()
680 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key2.four", &i32, -1)); in TEST()
682 ASSERT_EQ(NO_ERROR, timeMachine.get("Key1.five", &i32, -1)); in TEST()
683 ASSERT_EQ(5, i32); in TEST()
685 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key2.five", &i32, -1)); in TEST()
687 ASSERT_EQ(NO_ERROR, timeMachine.get("Key2.six", &i32, -1)); in TEST()
688 ASSERT_EQ(6, i32); in TEST()
690 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key2.seven", &i32, -1)); in TEST()
728 int32_t i32; in TEST() local
729 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.one", &i32, -1)); in TEST()
730 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.two", &i32, -1)); in TEST()
731 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.three", &i32, -1)); in TEST()
732 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.four", &i32, -1)); in TEST()
733 ASSERT_EQ(BAD_VALUE, timeMachine.get("Key1.five", &i32, -1)); in TEST()
735 ASSERT_EQ(NO_ERROR, timeMachine.get("Key2.three", &i32, -1)); in TEST()
736 ASSERT_EQ(3, i32); in TEST()
738 ASSERT_EQ(NO_ERROR, timeMachine.get("Key3.six", &i32, -1)); in TEST()
739 ASSERT_EQ(6, i32); in TEST()