Searched refs:GetElementOr (Results 1 - 3 of 3) sorted by relevance

/gem5/ext/googletest/googletest/src/
H A Dgtest-internal-inl.h303 inline E GetElementOr(const std::vector<E>& v, int i, E default_value) { function in namespace:testing::internal
578 const int index = GetElementOr(test_case_indices_, i, -1);
585 const int index = GetElementOr(test_case_indices_, i, -1);
H A Dgtest.cc153 using internal::GetElementOr;
2740 const int index = GetElementOr(test_indices_, i, -1);
2747 const int index = GetElementOr(test_indices_, i, -1);
/gem5/ext/googletest/googletest/test/
H A Dgtest_unittest.cc254 using testing::internal::GetElementOr;
796 // Tests GetElementOr().
797 TEST(ContainerUtilityTest, GetElementOr) {
799 EXPECT_EQ('x', GetElementOr(a, 0, 'x'));
803 EXPECT_EQ('a', GetElementOr(a, 0, 'x'));
804 EXPECT_EQ('b', GetElementOr(a, 1, 'x'));
805 EXPECT_EQ('x', GetElementOr(a, -2, 'x'));
806 EXPECT_EQ('x', GetElementOr(a, 2, 'x'));

Completed in 57 milliseconds