reviewers ptal.
avi:
chrome/browser/ash/policy/dlp/data_transfer_dlp_controller_ash_browsertest.cc
chrome/browser/chromeos/policy/dlp/data_transfer_dlp_controller_browsertest.cc
chrome/browser/headless/headless_mode_browsertest.cc
chrome/browser/renderer_context_menu/link_to_text_menu_observer_interactive_uitest.cc
chrome/browser/sharing/shared_clipboard/shared_clipboard_test_base.cc
chrome/browser/ui/views/sharing/remote_copy_browsertest.cc
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
content/public/test/browser_test_utils.cc
ui/base/clipboard/clipboard.cc
ui/base/clipboard/clipboard.h
ui/base/clipboard/clipboard_non_backed_unittest.cc
ui/base/clipboard/clipboard_test_template.h
ui/base/clipboard/clipboard_win_unittest.cc
chromium-ui-...@google.com:
ui/views/controls/label_unittest.cc
ui/views/controls/textfield/textfield_model_unittest.cc
ui/views/controls/textfield/textfield_unittest.cc
ui/views/view_unittest.cc
blundell:
ash/quick_insert/quick_insert_test_util.cc
chrome/browser/ash/policy/dlp/data_transfer_dlp_controller_ash_browsertest.cc
chrome/browser/chromeos/policy/dlp/data_transfer_dlp_controller_browsertest.cc
chrome/browser/headless/headless_mode_browsertest.cc
chrome/browser/renderer_context_menu/link_to_text_menu_observer_interactive_uitest.cc
chrome/browser/sharing/shared_clipboard/shared_clipboard_test_base.cc
chrome/browser/ui/views/sharing/remote_copy_browsertest.cc
components/exo/seat_unittest.cc
ui/base/clipboard/clipboard.cc
ui/base/clipboard/clipboard.h
ui/base/clipboard/clipboard_non_backed_unittest.cc
ui/base/clipboard/clipboard_test_template.h
ui/base/clipboard/clipboard_win_unittest.cc
lambroslambrou:
remoting/host/chromeos/clipboard_aura_unittest.cc
dgozman:
chrome/browser/headless/headless_mode_browsertest.cc
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
content/public/test/browser_test_utils.cc
headless/test/headless_browser_browsertest.cc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reviewer source(s):
elly...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ui/views/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Can we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Can we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
I don't believe that's possible since `TestFuture` is part of `//base/test:test_support` which we cannot add a dependency on in this non-test target.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Thomas AndersonCan we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
I don't believe that's possible since `TestFuture` is part of `//base/test:test_support` which we cannot add a dependency on in this non-test target.
That is incredibly unfortunate. Can we spin off these SyncForTest functions into a test-only file?
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Thomas AndersonCan we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
Avi DrissmanI don't believe that's possible since `TestFuture` is part of `//base/test:test_support` which we cannot add a dependency on in this non-test target.
That is incredibly unfortunate. Can we spin off these SyncForTest functions into a test-only file?
Or at least note why we don’t use it.
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
sorry for the noise. ellyjones/avi/lambroslambrou please approve again as your +1's have been lost
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Thomas AndersonCan we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
Avi DrissmanI don't believe that's possible since `TestFuture` is part of `//base/test:test_support` which we cannot add a dependency on in this non-test target.
Avi DrissmanThat is incredibly unfortunate. Can we spin off these SyncForTest functions into a test-only file?
Or at least note why we don’t use it.
I've rewritten this CL to move the test functions to ui/base/clipboard/test/clipboard_test_util.h
| Code-Review | +1 |
The changes to this file can be reverted, then.
void SyncReadTestHelper(base::OnceClosure quit_closure, T* out, T result) {
if (out) {
*out = std::move(result);
}
std::move(quit_closure).Run();Thomas AndersonCan we use `base::test::TestFuture` instead? That is a one liner (allocate the future, make the call, call `Get()` and will replace all the RunLoop code.
Avi DrissmanI don't believe that's possible since `TestFuture` is part of `//base/test:test_support` which we cannot add a dependency on in this non-test target.
Avi DrissmanThat is incredibly unfortunate. Can we spin off these SyncForTest functions into a test-only file?
Thomas AndersonOr at least note why we don’t use it.
I've rewritten this CL to move the test functions to ui/base/clipboard/test/clipboard_test_util.h
The changes to this file can be reverted, then.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
-dgozman is OOO
+kvitekp for //headless
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Add Clipboard::Read*SyncForTest and replace sync calls in tests
The synchronous clipboard methods are deprecated, however syncing is
still acceptable in tests, so this CL adds test-only sync methods so
that the sync implementations can eventually be removed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |