| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
base::RunLoop run_loop;
messaging_client_.StartReceivingMessages(run_loop.QuitClosure(),
base::DoNothing());
test_responder_.AddStreamResponseToMostRecentRequestUrl(
/*messages=*/{}, HttpStatus::OK());
run_loop.Run();I've started using [`base::test::TestFuture`](https://source.chromium.org/chromium/chromium/src/+/main:base/test/test_future.h) to write new tests. For `base::test::TestFuture<void>`, it is pretty much equivalent to `base::RunLoop`, but I think `TestFuture` is better since it is semantically more clear.
```suggestion
base::test::TestFuture<void> future;
messaging_client_.StartReceivingMessages(future.GetCallback(),
base::DoNothing());
test_responder_.AddStreamResponseToMostRecentRequestUrl(
/*messages=*/{}, HttpStatus::OK());
future.Wait();
```
.WillOnce([](base::OnceClosure on_ready,
CorpMessagingClient::DoneCallback on_closed) {Looks like this can be replaced with [base::test::RunOnceCallback](https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=139;drc=c3703d522c4c30e29d3436b0eca9a6f8371dc289)? Same for the tests below.
// We haven't received any message, so messaging_authz_token_ is empty.nit: wrap with ``
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
base::RunLoop run_loop;
messaging_client_.StartReceivingMessages(run_loop.QuitClosure(),
base::DoNothing());
test_responder_.AddStreamResponseToMostRecentRequestUrl(
/*messages=*/{}, HttpStatus::OK());
run_loop.Run();I've started using [`base::test::TestFuture`](https://source.chromium.org/chromium/chromium/src/+/main:base/test/test_future.h) to write new tests. For `base::test::TestFuture<void>`, it is pretty much equivalent to `base::RunLoop`, but I think `TestFuture` is better since it is semantically more clear.
```suggestion
base::test::TestFuture<void> future;
messaging_client_.StartReceivingMessages(future.GetCallback(),
base::DoNothing());test_responder_.AddStreamResponseToMostRecentRequestUrl(
/*messages=*/{}, HttpStatus::OK());future.Wait();
```
Done
.WillOnce([](base::OnceClosure on_ready,
CorpMessagingClient::DoneCallback on_closed) {Looks like this can be replaced with [base::test::RunOnceCallback](https://source.chromium.org/chromium/chromium/src/+/main:base/test/gmock_callback_support.h;l=139;drc=c3703d522c4c30e29d3436b0eca9a6f8371dc289)? Same for the tests below.
Done
// We haven't received any message, so messaging_authz_token_ is empty.Joe Downingnit: wrap with ``
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Increase test coverage in /remoting/signaling - Part 2
Adding tests for Corp related classes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |