python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is there a way in gmock to return modified input arg without invoke?
I want to do something like this:
EXPECT_CALL(*mock, method(5)).WillOnce(Return(arg1 * 2));
where arg1 should be equal to first arg of called method. Is there a way to do that without testing::Invoke...
IzZy
Votes: 0
Answers: 2
Access Derived class (forward declaration) using base class pointer
How to access derived class member variable in my unit test framework(i.e. Gtest_main.cpp) from below scenario.
imp.cpp
class base{
public:
virtual void foo()=0;
};
...
rim
Votes: 0
Answers: 1
How to work with update_engine Unit test provided by AOSP?
We are planning to use google's unit tests for verification - https://chromium.googlesource.com/aosp/platform/system/update_engine/+/HEAD/
I tried building update_engine like any other module -
mydir/...

Bajrang Hudda
Votes: 0
Answers: 1
Return multiple mock objects from a mocked factory function which returns std::unique_ptr
How to return multiple mock objects from a mocked factory function which returns std::unique_ptr?
Return(ByMove(...)) cannot be used to return multiple times.
Trying to work from this answer:
https://...
Martin G
Votes: 0
Answers: 1