Skip to content

Commit

Permalink
.*: Replace spurious gtest.h includes
Browse files Browse the repository at this point in the history
Attempting to include gtest.h in a unit test using the "light" backend
to pw_unit_test will no longer work in Bazel after the backend is tidied
up.

Bug: 390709187
Change-Id: Ie5439c3a184564a7947ad56521b8615eaa71244a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/266972
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Docs-Not-Needed: Ted Pudlik <tpudlik@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
  • Loading branch information
tpudlik authored and CQ Bot Account committed Feb 10, 2025
1 parent f27457d commit 2368964
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pw_build/linker_symbol_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "pw_build/linker_symbol.h"

#include "gtest/gtest.h"
#include "pw_unit_test/framework.h"

namespace pw {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion pw_channel/epoll_channel_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <sys/types.h>
#include <unistd.h>

#include "gtest/gtest.h"
#include "pw_assert/check.h"
#include "pw_async2/dispatcher.h"
#include "pw_bytes/array.h"
Expand All @@ -30,6 +29,7 @@
#include "pw_thread/sleep.h"
#include "pw_thread/thread.h"
#include "pw_thread_stl/options.h"
#include "pw_unit_test/framework.h"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion pw_display/color_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#include "pw_display/color.h"

#include "gtest/gtest.h"
#include "pw_display/colors_endesga64.h"
#include "pw_display/colors_pico8.h"
#include "pw_unit_test/framework.h"

namespace pw::display {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion pw_uart/stream_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "pw_uart/stream.h"

#include "gtest/gtest.h"
#include "pw_unit_test/framework.h"

namespace pw::uart {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion pw_uart/uart_non_blocking_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

#include <cstdint>

#include "gtest/gtest.h"
#include "pw_bytes/span.h"
#include "pw_function/function.h"
#include "pw_status/status.h"
#include "pw_status/status_with_size.h"
#include "pw_unit_test/framework.h"

namespace pw::uart {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion pw_uart/uart_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#include "pw_uart/uart.h"

#include "gtest/gtest.h"
#include "pw_status/status.h"
#include "pw_status/status_with_size.h"
#include "pw_unit_test/framework.h"

namespace pw::uart {
namespace {
Expand Down

0 comments on commit 2368964

Please sign in to comment.