[simple_browser] Refactored WebPageBloc to be more test-friendly.

- Separated fidl dependent codes from webpage_bloc.dart to services/simple_browser_web_servce.dart.
- Created a separate class SimpleBrowserNavigationEventListener that inherits fidl's NavigationEventListener so that it can be independently tested from SimpleBrowserWebService.
- Modified all files and tests affected by the refactoring.
- Changed the callback function '_handleAction' to '_onActionChanged' so that it sounds more like conventional callback name.

Change-Id: I1c84ca70ae44a22a9b18e8048ac66ee503b0a102
6 files changed
tree: 52242630459ee3640134be86dc264723776f7503
  1. base_shells/
  2. benchmarks/
  3. bin/
  4. examples/
  5. lib/
  6. session_shells/
  7. settings/
  8. story_shells/
  9. tests/
  10. .gitignore
  11. analysis_options.yaml
  12. AUTHORS
  13. BUILD.gn
  14. CONTRIBUTING.md
  15. LICENSE
  16. OWNERS
  17. PATENTS
  18. README.md
README.md

Fuchsia Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Fuchsia.