[roll] Roll fuchsia [bt] Add fitx::result<Error<…>, …> printer for GoogleTest

Add an operator<< overload in namespace fitx that converts results
containing bt::Error into strings in the case that unit test checks
against such result objects fail. They are currently printed as an
8-byte hex string.

Refactor existing ToString implementation to isolate the string builder
logic and genericize it to be compatible for both
std::basic_string::append and basic_ostream::operator<<.

Add logic to convert the success value contained in a result to
ToString, when possible.

Change the string format to be clearer about the result's state, with
"ok(…)" and "error(…)" strings.

Original-Bug: 86900, 91367
Test: in bt-host-common-tests, ErrorTest.ToStringOnResult
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/634405
Original-Revision: 5ad59589b09a1d67201fd5723e55d1daf24da000
GitOrigin-RevId: e4d0675c6354c77af7b50ad932c06936157d5346
Change-Id: I7b496233c8e432a86f2e0ba6a030f305f3e1a290
1 file changed
tree: 70faf434d3c8db8ab8aab1fc1ef944b46088c5a2
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
  12. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.