Searched full:foo* (Results 101 - 125 of 234) sorted by relevance

12345678910

/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-generated-function-mockers.h.pump218 // Foo(1);
219 // Foo(2);
220 // Foo(3);
222 // and want to verify that Foo(1) and Foo(3) both invoke
223 // mock.Bar("a"), but Foo(2) doesn't invoke anything, you can write:
225 // TEST(FooTest, InvokesBarCorrectly) {
236 // Foo(1);
238 // Foo(2);
240 // Foo(
[all...]
H A Dgmock-generated-matchers.h1250 // In the matcher definition body, you can write 'foo_type' to
1251 // reference the type of a parameter named 'foo'. For example, in the
1305 // MATCHER_Pk(Foo, p1, ..., pk, description_string) { ... }
1310 // FooMatcherPk<p1_type, ..., pk_type>
1311 // Foo(p1_type p1, ..., pk_type pk) { ... }
1313 // When you write Foo(v1, ..., vk), the compiler infers the types of
1316 // explicitly instantiating the template, as in Foo<long, bool>(5,
1319 // is used. You can assign the result of expression Foo(p1, ..., pk)
1320 // to a variable of type FooMatcherPk<p1_type, ..., pk_type>. This
H A Dgmock-generated-matchers.h.pump461 // In the matcher definition body, you can write 'foo_type' to
462 // reference the type of a parameter named 'foo'. For example, in the
516 // MATCHER_Pk(Foo, p1, ..., pk, description_string) { ... }
521 // FooMatcherPk<p1_type, ..., pk_type>
522 // Foo(p1_type p1, ..., pk_type pk) { ... }
524 // When you write Foo(v1, ..., vk), the compiler infers the types of
527 // explicitly instantiating the template, as in Foo<long, bool>(5,
530 // is used. You can assign the result of expression Foo(p1, ..., pk)
531 // to a variable of type FooMatcherPk<p1_type, ..., pk_type>. This
H A Dgmock-matchers.h61 // To implement a matcher Foo for type T, define:
62 // 1. a class FooMatcherImpl that implements the
65 // FooMatcherImpl*.
331 // EXPECT_CALL(foo, Bar(5)) instead of EXPECT_CALL(foo, Bar(Eq(5))) sometimes
336 // instead of Eq(str) and "foo" instead of Eq("foo") when a string
351 // Allows the user to write "foo" instead of Eq("foo") sometimes.
368 // Allows the user to write "foo" instea
[all...]
H A Dgmock-spec-builders.h111 // mock function Foo() is called, it needs to consult its expectations
113 // call a mock function (either Foo() or a different one) at the same
114 // time, it could affect the "retired" attributes of Foo()'s
1778 // class MockFoo : public Foo {
1814 // class MockFoo : public FooInterface {
1820 // MockFoo foo;
1822 // EXPECT_CALL(foo, Bar());
1824 // EXPECT_CALL(Const(foo), Bar());
/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h54 // treated as one word. For example, both "FooBar123" and
55 // "foo_bar_123" are converted to "foo bar 123".
/gem5/ext/googletest/googlemock/scripts/
H A Dfuse_gmock_files.py143 # It's '#include "gtest/foo.h"'. We translate it to
144 # "gtest/gtest.h", regardless of what foo is, since all
177 # It's '#include "gmock/foo.h"'. We treat it as '#include
195 # It's '#include "src/foo"' - let's process it recursively.
H A Dgmock-config.in33 g++ $(gmock-config --cppflags --cxxflags) -o foo.o -c foo.cpp
34 g++ $(gmock-config --ldflags --libs) -o foo foo.o
H A Dgmock_doctor.py294 bool Foo(int n);
296 Truly(static_cast<bool (*)(int n)>(Foo))"""
345 class Foo {
350 Invoke(foo, static_cast<bool (Foo::*)(int n, double x)>(&Foo::Bar))"""
496 [(gcc_4_3_1_regex_type_in_retval, diagnosis % {'type': 'Foo'}),
497 (gcc_4_4_0_regex_type_in_retval, diagnosis % {'type': 'Foo'}),
501 (clang_regex_type_of_a_param, diagnosis % {'type': 'Foo'})],
551 EXPECT_CALL(my_mock, Foo(
[all...]
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dast.py479 For example, code like class Foo : public Bar<x, y> { ... };
555 # Register(Foo<T>); where it thinks this is a function call
H A Dgmock_class_test.py59 class Foo {
70 class Foo {
72 Foo();
73 Foo(int x);
74 Foo(const Foo& f);
75 Foo(Foo&& f);
76 ~Foo();
87 class Foo {
[all...]
H A Dtokenize.py237 # Handle #include "dir//foo.h" properly.
/gem5/ext/googletest/googlemock/src/
H A Dgmock-internal-utils.cc52 // treated as one word. For example, both "FooBar123" and
53 // "foo_bar_123" are converted to "foo bar 123".
/gem5/ext/googletest/googlemock/test/
H A Dgmock-actions_test.cc644 EXPECT_TRUE(a2.Perform(make_tuple("foo")) == nullptr);
698 MOCK_METHOD0(Foo, MyNonDefaultConstructible());
722 EXPECT_CALL(mock, Foo())
725 EXPECT_ANY_THROW(mock.Foo());
728 mock.Foo();
931 using testing::internal::FooMessage;
932 FooMessage* const msg = new FooMessage;
935 FooMessage orig_msg;
938 Action<void(bool, FooMessage*)>
1115 class Foo { class in namespace:__anon14
1117 Foo() : value_(123) {} function in class:__anon14::Foo
1162 Foo foo; local
[all...]
H A Dgmock-generated-actions_test.cc875 PadArgument(std::string("foo"), 'r');
877 PadArgument("foo", static_cast<int>('r'));
878 EXPECT_EQ("foobar", no_promo.Perform(make_tuple(CharPtr("ba"))));
879 EXPECT_EQ("foobar", promo.Perform(make_tuple(CharPtr("ba"))));
H A Dgmock-generated-function-mockers_test.cc75 class FooInterface { class in namespace:testing::gmock_generated_function_mockers_test
77 virtual ~FooInterface() {}
123 class MockFoo : public FooInterface {
184 FunctionMockerTest() : foo_(&mock_foo_) {}
186 FooInterface* const foo_; member in class:testing::gmock_generated_function_mockers_test::FunctionMockerTest
193 foo_->VoidReturning(0);
202 EXPECT_EQ(0, foo_->Nullary());
203 EXPECT_EQ(1, foo_->Nullary());
212 EXPECT_TRUE(foo_
556 MockFunction<void()> foo; local
562 MockFunction<int()> foo; local
571 MockFunction<void(int)> foo; local
577 MockFunction<int(bool, int)> foo; local
590 int a5, int a6, char a7, int a8, bool a9)> foo; local
600 MockFunction<int(int)> foo; local
611 MockFunction<int&()> foo; local
[all...]
H A Dgmock-generated-matchers_test.cc880 UncopyableFoo foo1('1'), foo2('2');
882 ReferencesUncopyable<const UncopyableFoo&>(foo1);
884 EXPECT_TRUE(m.Matches(foo1));
885 EXPECT_FALSE(m.Matches(foo2));
898 MATCHER_P3(ParamTypesAreIntLongAndChar, foo, bar, baz, "") {
899 StaticAssertTypeEq<int, foo_type>();
917 UncopyableFoo foo1('1'), foo2('2'), foo3('
[all...]
H A Dgmock-internal-utils_test.cc87 EXPECT_EQ("foo bar", ConvertIdentifierNameToWords("FooBar"));
88 EXPECT_EQ("foo", ConvertIdentifierNameToWords("Foo_"));
89 EXPECT_EQ("foo bar", ConvertIdentifierNameToWords("_Foo_Bar_"));
90 EXPECT_EQ("foo and bar", ConvertIdentifierNameToWords("_Foo__And_Bar"));
94 EXPECT_EQ("foo bar", ConvertIdentifierNameToWords("foo_bar"));
95 EXPECT_EQ("foo", ConvertIdentifierNameToWords("_foo_"));
96 EXPECT_EQ("foo ba
[all...]
H A Dgmock-matchers_test.cc549 bool IsPositiveIntValue(const IntValue& foo) { argument
550 return foo.value() > 0;
1273 const Matcher<string> m1 = HasSubstr("foo");
1274 EXPECT_TRUE(m1.Matches(string("I love food.")));
1277 const Matcher<const std::string&> m2 = HasSubstr("foo");
1278 EXPECT_TRUE(m2.Matches(std::string("I love food.")));
1284 const Matcher<char*> m1 = HasSubstr("foo");
1285 EXPECT_TRUE(m1.Matches(const_cast<char*>("I love food.")));
1289 const Matcher<const char*> m2 = HasSubstr("foo");
1290 EXPECT_TRUE(m2.Matches("I love food
2452 const int foo = 0; member in namespace:testing::gmock_matchers_test
[all...]
H A Dgmock-more-actions_test.cc180 class Foo { class in namespace:testing::gmock_more_actions_test
182 Foo() : value_(123) {} function in class:testing::gmock_more_actions_test::Foo
341 Foo foo; local
343 Invoke(&foo, &Foo::SumOfLast2);
347 Invoke(&foo, &Foo::SumOfLast2);
367 Foo foo; local
374 Foo foo; local
381 Foo foo; local
390 Foo foo; local
397 Foo foo; local
404 Foo foo; local
411 Foo foo; local
419 Foo foo; local
431 Foo foo; local
443 Foo foo; local
455 Foo foo; local
468 Foo foo; local
[all...]
H A Dgmock-nice-strict_test.cc68 class Foo { class in namespace:testing::gmock_nice_strict_test
70 virtual ~Foo() {}
76 class MockFoo : public Foo {
H A Dgmock-spec-builders_test.cc2198 MOCK_METHOD1(Foo, PrintMeNot(PrintMeNot));
2211 EXPECT_CALL(helper_, Foo(_))
2213 helper_.Foo(PrintMeNot()); // This is an expected call.
2218 EXPECT_CALL(helper_, Foo(_))
2220 helper_.Foo(PrintMeNot()); // This is an expected call.
2225 ON_CALL(helper_, Foo(_))
2227 helper_.Foo(PrintMeNot()); // This should generate a warning.
H A Dgmock_leak_test_.cc43 class FooInterface { class in namespace:__anon22
45 virtual ~FooInterface() {}
49 class MockFoo : public FooInterface {
60 MockFoo* foo = new MockFoo; local
62 EXPECT_CALL(*foo, DoThis());
63 foo->DoThis();
65 // In order to test the leak detector, we deliberately leak foo.
73 MockFoo* foo = new MockFoo; local
75 ON_CALL(*foo, DoThis()).WillByDefault(Return());
77 // In order to test the leak detector, we deliberately leak foo
85 MockFoo* foo1 = new MockFoo; local
86 MockFoo* foo2 = new MockFoo; local
[all...]
H A Dgmock_output_test.py66 """Removes Google Test result report's header and footer from the output."""
114 # For example, if '(used in test FooTest.Bar)' is in output, the
115 # list will contain 'FooTest.Bar'.
H A Dgmock_output_test_.cc65 NaggyMock<MockFoo> foo_; member in class:GMockOutputTest
71 EXPECT_CALL(foo_, Bar2(0, _));
72 foo_.Bar2(0, 0); // Expected call
80 EXPECT_CALL(foo_, Bar3(0, _));
81 foo_.Bar3(0, 0); // Expected call
87 EXPECT_CALL(foo_, Bar2(_, _))
90 foo_.Bar2(2, 2);
91 foo_.Bar2(1, 1); // Explicit actions in EXPECT_CALL run out.
95 EXPECT_CALL(foo_, Bar2(0, _));
97 foo_
255 MockFoo* foo1 = new MockFoo; local
256 MockFoo* foo2 = new MockFoo; local
272 MockFoo* foo = new MockFoo; local
[all...]

Completed in 100 milliseconds

12345678910