Commit Graph

5 Commits

Author SHA1 Message Date
Wyatt Hepler
d4ab5e2da6 Fix or update references to pwbug/387
- Fix all references to pwbug/387 in tests by checking the statuses with
  ASSERT_EQ.
- Update other references to pwbug/387 to refer to the new bug
  b/242598609.

Fixes: b/242050869
Change-Id: I07f5e33dc8149382c9103511e6bcc7e7c51eea63
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106652
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
2022-08-15 22:30:26 +00:00
Wyatt Hepler
6c5df358e6 pw_span: Switch from std::span to pw::span
This changes uses of std::span to pw::span. No changes are made to build
dependencies in this commit.

This change was made with the following shell script:

  #!/bin/bash

  readonly FILES="$(git ls-files '*.rst' '*.md' '*.h' '*.cc' '*.py')"
  readonly PW_NS_FILES="$(git grep -l 'namespace pw\>' | grep -v generate_decoding_test_data.cc)"

  echo "Updating #includes"
  sed -i --follow-symlinks \
      's/#include <span>/#include "pw_span\/span.h"/g' ${FILES}

  for name in span as_bytes as_writable_bytes dynamic_extent; do
    echo Renaming std::$name to pw::$name
    sed -i --follow-symlinks "s/std::$name/pw::$name/g" ${FILES}
    sed -i --follow-symlinks "s/pw::$name/$name/g" ${PW_NS_FILES}
    sed -i --follow-symlinks "s/using $name;//" ${PW_NS_FILES}
  done

  git checkout pw_span

  pw format -b origin/main --fix

Bug: b/235237667
Change-Id: I32edfbcb7cadf3ab39009596fdb7275fcc5ea3f5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98264
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
2022-06-29 00:15:46 +00:00
Adrien Larbanet
d1ca56c8cd overall: Adding IgnoreError() where Status was discarded
Bug: 387
Change-Id: I720b7a99a1c7a24eb8e2554629529d1e24394cb1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/49041
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
2021-08-16 18:43:40 +00:00
Armando Montanez
32988e0ba0 pw_protobuf: Deprecate old encoder
Marks the old pw::protobuf::Encoder as deprecated. For the interim, use
pigweed's new pw::protobuf::StreamingEncoder. The
pw::protobuf::MemoryEncoder will be renamed to replace the original
Encoder.

Bugs: 384
Change-Id: Ifbbf73af7c9b6cf5737c326ef10a4ecf70521adf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/46621
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
2021-07-27 18:12:50 +00:00
Armando Montanez
179aa8eab0 pw_snapshot: Add snapshot proto
Initial commit for the pw_snapshot module that introduces the proto
format for device snapshots, and documentation that introduces the
pw_snapshot module and how to use it.

Change-Id: I63e12d245073e82de03be995a001a0ee0cc1f443
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38103
Commit-Queue: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: David Rogers <davidrogers@google.com>
2021-04-30 22:46:47 +00:00