[deprecated_loop] Support replacing std::function with fit::function

Removing message_loop_unittest case:
"TaskRunnerAvailableDuringLoopDestruction"

With the new move-only semantics of fxl::Closure, this test no longer
passes. The test only compiles if the test inner class
"DestructorObserver" is copyable. If I make DestructorObserver a
move-only class, or wrap in "make_unique<>", the assignments to
"d" (which was in the original test case) fail to compile. This seems
to indicate that the assignments are copying the DestructorObserver.

Without making the copies, the destructor doesn't invoke the
DestructorObserver callback and the tests fail. It's possible that
the destructor was invoked for the original instance and not the
instance assigned to "d", which was added to the task_runner.
The test may not have been testing the intended behavior in the first
place. (I may be wrong.)

Since this "MessageLoop" class is deprecated anyway, and all other
tests pass, I'm hoping this behavior is not relevant now, if it was
ever relevant in the past.

Test: message_loop_unittest
Change-Id: I583e3824e694050158c352b59d8a0a5ae6961ca8
1 file changed
tree: 8d0979e2f93e5c24a0d6f5047afe4ab401beddf5
  1. .cargo/
  2. app/
  3. auth_providers/
  4. bin/
  5. boards/
  6. docs/
  7. examples/
  8. lib/
  9. manifest/
  10. packages/
  11. products/
  12. public/
  13. runtime/
  14. shell/
  15. tests/
  16. tools/
  17. .clang-format
  18. .gitignore
  19. AUTHORS
  20. BUILD.gn
  21. CONTRIBUTING.md
  22. LICENSE
  23. MAINTAINERS
  24. PATENTS
  25. README.md
  26. rustfmt.toml
README.md

Topaz

Topaz augments system functionality by implementing interfaces defined by underlying layers. Topaz contains four major categories of software: modules, agents, shells, and runners.

For example, modules include the dashboard, and runners include the Web, Dart, and Flutter runners.

Removed Components

Looking for something that used to be in this repository? The list below provides a code location and sha that can be used to checkout dead code that has been removed. Please note, it is unlikely the code will build or work correctly shas are provided for reference only. Code can be checked out with:

    git checkout <sha> -- $FUCHSIA_DIR/<location>
  • topaz/app/chat: 9f6c31d2ceb8353f229a9ef6b53ba2386ff31867
  • topaz/app/color: 5a023ccb054104846e3e913951bcc7dc277d2274
  • topaz/app/contacts: 80378fe470817750188707de29237282892a3142
  • topaz/app/documents: b5a3ee29b15414f232865128195d14bd8811ab02
  • topaz/app/image: 5e731a943a907cf960ecfbda1c391958f9093afa
  • topaz/app/link_viewer: 00fe1236c6851da5d54c625a8293561bb617804c
  • topaz/app/video: fc03877f787fc119140b900d476c4563bd04a529
  • topaz/tools/dartfmt_extras: acc1f05718af2bcfbba3317a456f82b67eec4e42
  • topaz/tools/mod: acc1f05718af2bcfbba3317a456f82b67eec4e42
  • topaz/tools/widget_explorer: acc1f05718af2bcfbba3317a456f82b67eec4e42