| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
pending_list_.clear();we probably also want to set active_until_empty_ to false. Even better would be to reset this whole object, to completely wipe all state added in the future.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
we probably also want to set active_until_empty_ to false. Even better would be to reset this whole object, to completely wipe all state added in the future.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
can you add a unit test?
if (auto* factory = ash::ClipboardImageModelFactory::Get()) {when can this be null?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
can you add a unit test?
Unfortunately there are no existing unit tests in the ash clipboard directory
https://source.chromium.org/chromium/chromium/src/+/main:chromeos/ash/experiences/clipboard/
If we had an existing test that verifies that various services are turned off in locked mode, I could add this, but I don't really want to create a new test suite to fix this security issue.
I can add a trivial test to shell delegate using the mock to ensure CancellAllRequests is called, but it seems pointless.
if (auto* factory = ash::ClipboardImageModelFactory::Get()) {when can this be null?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Achuith Bhandarkarcan you add a unit test?
Unfortunately there are no existing unit tests in the ash clipboard directory
https://source.chromium.org/chromium/chromium/src/+/main:chromeos/ash/experiences/clipboard/If we had an existing test that verifies that various services are turned off in locked mode, I could add this, but I don't really want to create a new test suite to fix this security issue.
I can add a trivial test to shell delegate using the mock to ensure CancellAllRequests is called, but it seems pointless.
You can ask gemini/jetski to create a test. They're pretty good at it nowadays.
you can point ontask tests,but it can also ask it to find an example and use the same pattern to enter ontask.
const bool locked = window_state.IsPinned();Can you add me to the bug? This may be what you need here:
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Achuith Bhandarkarcan you add a unit test?
Mitsuru OshimaUnfortunately there are no existing unit tests in the ash clipboard directory
https://source.chromium.org/chromium/chromium/src/+/main:chromeos/ash/experiences/clipboard/If we had an existing test that verifies that various services are turned off in locked mode, I could add this, but I don't really want to create a new test suite to fix this security issue.
I can add a trivial test to shell delegate using the mock to ensure CancellAllRequests is called, but it seems pointless.
You can ask gemini/jetski to create a test. They're pretty good at it nowadays.
you can point ontask tests,but it can also ask it to find an example and use the same pattern to enter ontask.
ok, I got jetski to create the test. PTAL
I've verified that the test fails without the new CancellAllRequests command. PTAL
Can you add me to the bug? This may be what you need here:
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Please look into if we can improve the test.
class ChromeShellDelegateBrowserTest : public InProcessBrowserTest {nit 😊
using ChromeShellDelegateBrowserTest = InProcessBrowserTest;
*window_state);Do you need this? I think this should be called here
run_loop.Run();Do you know what tasks are necessary? It'd be better too use base::test::RunUntil instead.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
hidehiko-san - need owner approval for DEPS change
class ChromeShellDelegateBrowserTest : public InProcessBrowserTest {nit 😊
using ChromeShellDelegateBrowserTest = InProcessBrowserTest;
Nice trick! Done
Do you need this? I think this should be called here
Removed
Do you know what tasks are necessary? It'd be better too use base::test::RunUntil instead.
It's actually a negative test because we've cancelled all tasks. We're just waiting for this timeout:
https://source.chromium.org/chromium/chromium/src/+/main:chromeos/ash/experiences/clipboard/clipboard_image_model_request.cc;l=325
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |