--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CA%2B4qT31TjR_RYQEM%2B-TJpjj77Goetck2saOj%2BnNzS6EF34M9UA%40mail.gmail.com.
--
One option is to look exactly like the existing support in https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h
* Instead of calling the callback right away they grab a base::SequencedTaskRunnerHandle::Get() on action creation, and post the resulting callback to that when the action is executed.
* Maybe have a PostOnceCallbackWithTaskRunner version that takes a task runner as a first argument, then the callback arguments after it.
On Fri, May 20, 2022 at 11:24 AM K. Moon <km...@chromium.org> wrote:
The bug is probably the best place to discuss this, but ignoring the implementation for a moment, can you give an example or snippet of what your ideal usage would look like?
On Fri, May 20, 2022 at 11:09 AM Daniel Murphy <dmu...@chromium.org> wrote:
Hello!--I filed this bug but IDK if there is a category for it.I LOVE the gmock_callback_support functionality. One thing that I often need is this same ability, but where the callback is posted on a task runner. I tried to hack this up but was quickly over my head.
Any chance this is something someone else wanted too? Is there a place to put this feature request? Happy to collaborate on creating this as well, any gmock action experts?Thanks,Dan
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.