Lines Matching defs:foo

549 bool IsPositiveIntValue(const IntValue& foo) {
550 return foo.value() > 0;
1273 const Matcher<string> m1 = HasSubstr("foo");
1277 const Matcher<const std::string&> m2 = HasSubstr("foo");
1284 const Matcher<char*> m1 = HasSubstr("foo");
1289 const Matcher<const char*> m2 = HasSubstr("foo");
1297 Matcher<string> m = HasSubstr("foo\n\"");
1298 EXPECT_EQ("has substring \"foo\\n\\\"\"", Describe(m));
1302 Matcher<const pair<std::string, int>&> m = Key("foo");
1303 EXPECT_EQ("has a key that is equal to \"foo\"", Describe(m));
1304 EXPECT_EQ("doesn't have a key that is equal to \"foo\"", DescribeNegation(m));
1316 pair<int, std::string> p(25, "foo");
1358 Matcher<const pair<const char*, int>&> m1 = Pair("foo", 42);
1359 Matcher<const pair<const char*, int> > m2 = Pair("foo", 42);
1360 Matcher<pair<const char*, int> > m3 = Pair("foo", 42);
1367 Matcher<const pair<std::string, int>&> m1 = Pair("foo", 42);
1368 EXPECT_EQ("has a first field that is equal to \"foo\""
1371 EXPECT_EQ("has a first field that isn't equal to \"foo\""
1420 pair<int, std::string> p(25, "foo");
1423 EXPECT_THAT(p, Pair(25, "foo"));
1427 EXPECT_THAT(p, Not(Pair(42, "foo")));
1428 EXPECT_THAT(p, Not(Pair(Lt(25), "foo")));
1432 EXPECT_THAT(p, Not(Pair(25, Not("foo"))));
1666 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo");
1670 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo");
1677 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1682 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1690 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\"");
1691 EXPECT_EQ("has substring L\"foo\\n\\\"\"", Describe(m));
1857 const Matcher< ::wstring> m1 = HasSubstr(L"foo");
1861 const Matcher<const ::wstring&> m2 = HasSubstr(L"foo");
1868 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1873 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1881 Matcher< ::wstring> m = HasSubstr(L"foo\n\"");
1882 EXPECT_EQ("has substring L\"foo\\n\\\"\"", Describe(m));
2452 const int foo = 0;
2454 // This predicate returns true iff the argument references foo and has
2457 return (&n == &foo) && (n == 0);
2509 EXPECT_TRUE(m.Matches(foo));
3802 string IntToStringFunction(int input) { return input == 1 ? "foo" : "bar"; }
3805 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo")));
3813 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo"));
3816 "is equal to \"foo\"", Describe(matcher));
3818 "isn't equal to \"foo\"", DescribeNegation(matcher));
3874 string s = "foo";
3896 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3903 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo"));
3917 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo")));
4085 text = "foo";
4121 container.insert(make_pair("foo", 1));