Skip to content

Commit

Permalink
cleanup(storage): fix MOAR IWYU warnings, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan committed Jul 23, 2024
1 parent 413aac3 commit 657911a
Show file tree
Hide file tree
Showing 101 changed files with 116 additions and 0 deletions.
1 change: 1 addition & 0 deletions google/cloud/storage/async/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/internal/async/default_options.h"
#include "google/cloud/storage/internal/grpc/stub.h"
#include "google/cloud/grpc_options.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "google/cloud/internal/group_options.h"
#include "google/cloud/status_or.h"
#include <google/storage/v2/storage.pb.h>
#include <memory>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/client_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "google/cloud/testing_util/status_matchers.h"
#include <google/protobuf/text_format.h>
#include <gmock/gmock.h>
#include <memory>
#include <string>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/idempotency_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

#include "google/cloud/storage/async/idempotency_policy.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "google/cloud/storage/async/reader.h"
#include "google/cloud/storage/async/reader_connection.h"
#include "google/cloud/internal/make_status.h"
#include <memory>
#include <utility>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/testing_util/async_sequencer.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/resume_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

#include "google/cloud/storage/async/resume_policy.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/rewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "google/cloud/storage/async/rewriter.h"
#include "google/cloud/internal/make_status.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/rewriter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/testing/canonical_errors.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "google/cloud/storage/async/writer.h"
#include "google/cloud/internal/make_status.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/writer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/testing/canonical_errors.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <memory>
#include <string>
#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include <atomic>
#include <future>
#include <iomanip>
#include <iostream>
#include <map>
#include <mutex>
#include <random>
#include <sstream>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "google/cloud/grpc_options.h"
#include "google/cloud/internal/absl_str_join_quiet.h"
#include "google/cloud/internal/make_status.h"
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "google/cloud/testing_util/timer.h"
#include "absl/strings/str_format.h"
#include "absl/time/time.h"
#include <mutex>

namespace {
using ::google::cloud::testing_util::FormatSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "google/cloud/storage/benchmarks/aggregate_upload_throughput_options.h"
#include "google/cloud/grpc_options.h"
#include "google/cloud/internal/absl_str_join_quiet.h"
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/benchmarks/async_throughput_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <chrono>
#include <cstdint>
#include <iostream>
#include <map>
#include <memory>
#include <random>
#include <stdexcept>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/benchmark_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "absl/strings/strip.h"
#include "absl/time/time.h"
#include <future>
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/create_dataset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cstdlib>
#include <future>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/create_dataset_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "google/cloud/storage/benchmarks/create_dataset_options.h"
#include "google/cloud/internal/make_status.h"
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <fstream>
#include <future>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <cstdio>
#include <future>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <sstream>
#include <string>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#include "absl/time/time.h"
#include <functional>
#include <future>
#include <iostream>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/throughput_experiment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "google/cloud/storage/internal/grpc/ctype_cord_workaround.h"
#include "google/cloud/grpc_error_delegate.h"
#include <google/storage/v2/storage.grpc.pb.h>
#include <memory>
#include <string>
#include <utility>
#endif // GOOGLE_CLOUD_CPP_STORAGE_HAVE_GRPC
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/throughput_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/internal/make_status.h"
#include "absl/strings/str_split.h"
#include "absl/time/time.h"
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/mocks/mock_async_reader_connection.h"
#include <gmock/gmock.h>
#include <iostream>
#include <memory>
#include <string>
#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/testing/mock_client.h"
#include <gmock/gmock.h>
#include <iostream>
#include <memory>
#include <string>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/bucket_metadata_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "absl/strings/str_format.h"
#include <nlohmann/json.hpp>
#include <functional>
#include <map>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/bucket_requests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/internal/absl_str_join_quiet.h"
#include "google/cloud/internal/format_time_point.h"
#include <nlohmann/json.hpp>
#include <map>
#include <sstream>
#include <string>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/connection_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/internal/generic_stub_factory.h"
#include "google/cloud/storage/internal/tracing_connection.h"
#include "google/cloud/internal/opentelemetry.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/connection_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "absl/strings/match.h"
#include <chrono>
#include <functional>
#include <memory>
#include <sstream>
#include <string>
#include <thread>
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/connection_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "google/cloud/storage/retry_policy.h"
#include "google/cloud/storage/version.h"
#include "google/cloud/internal/invocation_id_generator.h"
#include <memory>
#include <string>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/testing/mock_generic_stub.h"
#include "google/cloud/storage/testing/retry_tests.h"
#include <gmock/gmock.h>
#include <memory>
#include <utility>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/generic_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "google/cloud/status.h"
#include "google/cloud/status_or.h"
#include "google/cloud/version.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/generic_stub_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/internal/rest/stub.h"
#include "google/cloud/storage/options.h"
#include "google/cloud/internal/algorithm.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/hash_function_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/storage/testing/upload_hash_cases.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <memory>
#include <string>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/hash_validator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "google/cloud/storage/internal/hash_validator_impl.h"
#include "google/cloud/storage/internal/object_requests.h"
#include "google/cloud/storage/object_metadata.h"
#include <memory>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/hash_validator_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "google/cloud/storage/internal/hash_validator.h"
#include "google/cloud/storage/version.h"
#include <memory>
#include <string>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/hash_validator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/storage/internal/object_requests.h"
#include "google/cloud/storage/testing/upload_hash_cases.h"
#include <gmock/gmock.h>
#include <memory>
#include <string>
#include <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "google/cloud/storage/internal/impersonate_service_account_credentials.h"
#include "google/cloud/internal/rest_client.h"
#include "google/cloud/internal/unified_rest_credentials.h"
#include <memory>
#include <mutex>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "google/cloud/storage/version.h"
#include "google/cloud/credentials.h"
#include "google/cloud/internal/oauth2_minimal_iam_credentials_rest.h"
#include <memory>
#include <mutex>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/internal/logging_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "google/cloud/storage/internal/logging_stub.h"
#include "google/cloud/internal/invoke_result.h"
#include "google/cloud/log.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
Expand Down
Loading

0 comments on commit 657911a

Please sign in to comment.