Skip to content

Commit

Permalink
chore: Fully specify include paths for sessiond
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
themarwhal committed Apr 21, 2022
1 parent 6978196 commit 476b05f
Show file tree
Hide file tree
Showing 99 changed files with 1,011 additions and 767 deletions.
17 changes: 9 additions & 8 deletions lte/gateway/c/session_manager/AAAClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
* limitations under the License.
*/

#include "lte/gateway/c/session_manager/AAAClient.h"

#include <glog/logging.h>
#include <grpcpp/channel.h>
#include <grpcpp/impl/codegen/status.h>
#include <feg/gateway/services/aaa/protos/accounting.grpc.pb.h>
#include <feg/gateway/services/aaa/protos/accounting.pb.h>
#include <lte/protos/session_manager.pb.h>
#include <memory>
#include <ostream>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>

#include "AAAClient.h"
#include "SessionState.h"
#include "Types.h"
#include "feg/gateway/services/aaa/protos/accounting.grpc.pb.h"
#include "feg/gateway/services/aaa/protos/accounting.pb.h"
#include "includes/ServiceRegistrySingleton.hpp"
#include "lte/protos/session_manager.pb.h"
#include "magma_logging.h"
#include "lte/gateway/c/session_manager/SessionState.h"
#include "lte/gateway/c/session_manager/Types.h"
#include "orc8r/gateway/c/common/service_registry/includes/ServiceRegistrySingleton.hpp"
#include "orc8r/gateway/c/common/logging/magma_logging.h"

using grpc::Status;

Expand Down
9 changes: 5 additions & 4 deletions lte/gateway/c/session_manager/AAAClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
*/
#pragma once

// IWYU pragma: no_include <context.pb.h>
#include <feg/gateway/services/aaa/protos/accounting.grpc.pb.h>
#include <stdint.h>
#include <functional>
#include <memory>
#include <string>

#include "SessionState.h"
#include "SessionStore.h"
#include "StoreClient.h"
#include "includes/GRPCReceiver.hpp"
#include "lte/gateway/c/session_manager/SessionState.h"
#include "lte/gateway/c/session_manager/SessionStore.h"
#include "lte/gateway/c/session_manager/StoreClient.h"
#include "orc8r/gateway/c/common/async_grpc/includes/GRPCReceiver.hpp"

namespace aaa {
namespace protos {
Expand Down
10 changes: 5 additions & 5 deletions lte/gateway/c/session_manager/AmfServiceClient.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#include "AmfServiceClient.h"
#include "lte/gateway/c/session_manager/AmfServiceClient.h"

#include <glog/logging.h>
#include <grpcpp/channel.h>
#include <grpcpp/impl/codegen/status.h>
#include <lte/protos/session_manager.grpc.pb.h>
#include <lte/protos/session_manager.pb.h>
#include <functional>
#include <ostream>
#include <utility>

#include "includes/ServiceRegistrySingleton.hpp"
#include "lte/protos/session_manager.grpc.pb.h"
#include "lte/protos/session_manager.pb.h"
#include "magma_logging.h"
#include "orc8r/gateway/c/common/service_registry/includes/ServiceRegistrySingleton.hpp"
#include "orc8r/gateway/c/common/logging/magma_logging.h"

using grpc::Status;

Expand Down
4 changes: 2 additions & 2 deletions lte/gateway/c/session_manager/AmfServiceClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
#pragma once

#include <grpc++/grpc++.h>
#include <lte/protos/apn.pb.h>
#include <lte/protos/session_manager.grpc.pb.h>
#include <lte/protos/session_manager.pb.h>
#include <stdint.h>
#include <memory>
#include <mutex>

#include "includes/GRPCReceiver.hpp"
#include "lte/protos/apn.pb.h"
#include "orc8r/gateway/c/common/async_grpc/includes/GRPCReceiver.hpp"

namespace grpc {
class Channel;
Expand Down
62 changes: 0 additions & 62 deletions lte/gateway/c/session_manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ cc_library(
name = "diameter_codes",
srcs = ["DiameterCodes.cpp"],
hdrs = ["DiameterCodes.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
)

cc_library(
name = "grpc_magma_utils",
srcs = ["GrpcMagmaUtils.cpp"],
hdrs = ["GrpcMagmaUtils.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
"//orc8r/gateway/c/common/logging",
"@com_github_google_glog//:glog",
Expand All @@ -38,24 +34,18 @@ cc_library(
name = "session_id",
srcs = ["SessionID.cpp"],
hdrs = ["SessionID.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
)

cc_library(
name = "utilities",
srcs = ["Utilities.cpp"],
hdrs = ["Utilities.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = ["@com_google_protobuf//:protobuf"],
)

cc_library(
name = "credit_key",
hdrs = ["CreditKey.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
"//lte/protos:policydb_cpp_proto",
"//lte/protos:session_manager_cpp_proto",
Expand All @@ -65,8 +55,6 @@ cc_library(
cc_library(
name = "types",
hdrs = ["Types.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":credit_key",
"//lte/protos:pipelined_cpp_proto",
Expand All @@ -77,8 +65,6 @@ cc_library(
cc_library(
name = "service_action",
hdrs = ["ServiceAction.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":credit_key",
":types",
Expand All @@ -98,8 +84,6 @@ cc_library(
"RedisMap.hpp",
"Serializers.h",
],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
"//lte/protos:policydb_cpp_proto",
"//orc8r/gateway/c/common/config:service_config_loader",
Expand All @@ -115,8 +99,6 @@ cc_library(
name = "session_reporter",
srcs = ["SessionReporter.cpp"],
hdrs = ["SessionReporter.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":grpc_magma_utils",
"//lte/protos:session_manager_cpp_grpc",
Expand All @@ -131,8 +113,6 @@ cc_library(
name = "stored_state",
srcs = ["StoredState.cpp"],
hdrs = ["StoredState.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":credit_key",
":types",
Expand All @@ -148,8 +128,6 @@ cc_library(
name = "rule_store",
srcs = ["RuleStore.cpp"],
hdrs = ["RuleStore.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":credit_key",
"//lte/protos:pipelined_cpp_grpc",
Expand All @@ -172,8 +150,6 @@ cc_library(
"Monitor.h",
"SessionCredit.h",
],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":diameter_codes",
":service_action",
Expand All @@ -189,16 +165,12 @@ cc_library(
name = "shard_tracker",
srcs = ["ShardTracker.cpp"],
hdrs = ["ShardTracker.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
)

cc_library(
name = "session_state",
srcs = ["SessionState.cpp"],
hdrs = ["SessionState.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":rule_store",
":session_credit",
Expand All @@ -215,8 +187,6 @@ cc_library(
name = "metering_reporter",
srcs = ["MeteringReporter.cpp"],
hdrs = ["MeteringReporter.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_credit",
":stored_state",
Expand All @@ -237,8 +207,6 @@ cc_library(
"SessionStore.h",
"StoreClient.h",
],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":metering_reporter",
":session_state",
Expand All @@ -252,8 +220,6 @@ cc_library(
name = "aaa_client",
srcs = ["AAAClient.cpp"],
hdrs = ["AAAClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_state",
":session_store",
Expand All @@ -266,8 +232,6 @@ cc_library(
name = "directoryd_client",
srcs = ["DirectorydClient.cpp"],
hdrs = ["DirectorydClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_state",
"//orc8r/gateway/c/common/async_grpc:async_grpc_receiver",
Expand All @@ -279,8 +243,6 @@ cc_library(
name = "mobilityd_client",
srcs = ["MobilitydClient.cpp"],
hdrs = ["MobilitydClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_state",
":types",
Expand All @@ -294,8 +256,6 @@ cc_library(
name = "pipelined_client",
srcs = ["PipelinedClient.cpp"],
hdrs = ["PipelinedClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_credit",
":session_state",
Expand All @@ -308,8 +268,6 @@ cc_library(
name = "spgw_service_client",
srcs = ["SpgwServiceClient.cpp"],
hdrs = ["SpgwServiceClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
"//lte/protos:spgw_service_cpp_grpc",
"//orc8r/gateway/c/common/async_grpc:async_grpc_receiver",
Expand All @@ -323,8 +281,6 @@ cc_library(
name = "amf_service_client",
srcs = ["AmfServiceClient.cpp"],
hdrs = ["AmfServiceClient.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
"//lte/protos:session_manager_cpp_grpc",
"//orc8r/gateway/c/common/async_grpc:async_grpc_receiver",
Expand All @@ -338,8 +294,6 @@ cc_library(
name = "session_events",
srcs = ["SessionEvents.cpp"],
hdrs = ["SessionEvents.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_credit",
":session_state",
Expand All @@ -351,8 +305,6 @@ cc_library(
name = "local_enforcer",
srcs = ["LocalEnforcer.cpp"],
hdrs = ["LocalEnforcer.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":aaa_client",
":directoryd_client",
Expand All @@ -369,8 +321,6 @@ cc_library(
name = "session_state_enforcer",
srcs = ["SessionStateEnforcer.cpp"],
hdrs = ["SessionStateEnforcer.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":amf_service_client",
":pipelined_client",
Expand All @@ -388,8 +338,6 @@ cc_library(
name = "stats_poller",
srcs = ["StatsPoller.cpp"],
hdrs = ["StatsPoller.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [":local_enforcer"],
)

Expand All @@ -411,8 +359,6 @@ cc_library(
name = "session_proxy_responder_handler",
srcs = ["SessionProxyResponderHandler.cpp"],
hdrs = ["SessionProxyResponderHandler.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":local_enforcer",
"//lte/protos:abort_session_cpp_grpc",
Expand All @@ -424,8 +370,6 @@ cc_library(
name = "local_session_manager_handler",
srcs = ["LocalSessionManagerHandler.cpp"],
hdrs = ["LocalSessionManagerHandler.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":local_enforcer",
":session_id",
Expand All @@ -437,8 +381,6 @@ cc_library(
name = "set_message_manager_handler",
srcs = ["SetMessageManagerHandler.cpp"],
hdrs = ["SetMessageManagerHandler.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":session_id",
":session_state_enforcer",
Expand All @@ -452,8 +394,6 @@ cc_library(
name = "upf_msg_manage_handler",
srcs = ["UpfMsgManageHandler.cpp"],
hdrs = ["UpfMsgManageHandler.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":mobilityd_client",
":session_id",
Expand All @@ -467,8 +407,6 @@ cc_library(
name = "session_manager_server",
srcs = ["SessionManagerServer.cpp"],
hdrs = ["SessionManagerServer.h"],
# TODO(@themarwhal): Migrate to using full path for includes - GH8494
strip_include_prefix = "/lte/gateway/c/session_manager",
deps = [
":local_session_manager_handler",
":session_proxy_responder_handler",
Expand Down
11 changes: 6 additions & 5 deletions lte/gateway/c/session_manager/ChargingGrant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* limitations under the License.
*/

#include "lte/gateway/c/session_manager/ChargingGrant.h"

#include <glog/logging.h>
#include <algorithm>
#include <ctime>
Expand All @@ -19,11 +21,10 @@
#include <string>
#include <vector>

#include "ChargingGrant.h"
#include "CreditKey.h"
#include "DiameterCodes.h"
#include "EnumToString.h"
#include "magma_logging.h"
#include "lte/gateway/c/session_manager/CreditKey.h"
#include "lte/gateway/c/session_manager/DiameterCodes.h"
#include "lte/gateway/c/session_manager/EnumToString.h"
#include "orc8r/gateway/c/common/logging/magma_logging.h"

namespace magma {
ChargingGrant::ChargingGrant(const StoredChargingGrant& marshaled) {
Expand Down

0 comments on commit 476b05f

Please sign in to comment.