@@ -805,8 +805,8 @@ class AdsServiceImpl : public AggregatedDiscoveryService::Service,
805805 resource_types_to_ignore_.emplace (type_url);
806806 }
807807
808- void SetResource (const google::protobuf::Any resource,
809- const std::string& type_url, const std::string& name) {
808+ void SetResource (google::protobuf::Any resource, const std::string& type_url ,
809+ const std::string& name) {
810810 grpc_core::MutexLock lock (&ads_mu_);
811811 ResourceState& state = resources_map_[type_url][name];
812812 ++state.version ;
@@ -851,7 +851,7 @@ class AdsServiceImpl : public AggregatedDiscoveryService::Service,
851851 kDefaultResourceName );
852852 listener.mutable_api_listener ()->mutable_api_listener ()->PackFrom (
853853 http_connection_manager);
854- SetLdsResource (std::move ( listener) , kDefaultResourceName );
854+ SetLdsResource (listener, kDefaultResourceName );
855855 }
856856
857857 static Listener BuildListener (const RouteConfiguration& route_config) {
@@ -1898,7 +1898,7 @@ TEST_P(RdsTest, NoMatchedDomain) {
18981898 balancers_[0 ]->ads_service ()->default_route_config ();
18991899 route_config.mutable_virtual_hosts (0 )->clear_domains ();
19001900 route_config.mutable_virtual_hosts (0 )->add_domains (" unmatched_domain" );
1901- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1901+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19021902 kDefaultResourceName );
19031903 SetNextResolution ({});
19041904 SetNextResolutionForLbChannelAllBalancers ();
@@ -1920,7 +1920,7 @@ TEST_P(RdsTest, ChooseMatchedDomain) {
19201920 ->mutable_routes (0 )
19211921 ->mutable_route ()
19221922 ->mutable_cluster_header ();
1923- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1923+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19241924 kDefaultResourceName );
19251925 SetNextResolution ({});
19261926 SetNextResolutionForLbChannelAllBalancers ();
@@ -1941,7 +1941,7 @@ TEST_P(RdsTest, ChooseLastRoute) {
19411941 ->mutable_routes (0 )
19421942 ->mutable_route ()
19431943 ->mutable_cluster_header ();
1944- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1944+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19451945 kDefaultResourceName );
19461946 SetNextResolution ({});
19471947 SetNextResolutionForLbChannelAllBalancers ();
@@ -1960,7 +1960,7 @@ TEST_P(RdsTest, RouteMatchHasNonemptyPrefix) {
19601960 ->mutable_routes (0 )
19611961 ->mutable_match ()
19621962 ->set_prefix (" nonempty_prefix" );
1963- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1963+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19641964 kDefaultResourceName );
19651965 SetNextResolution ({});
19661966 SetNextResolutionForLbChannelAllBalancers ();
@@ -1976,7 +1976,7 @@ TEST_P(RdsTest, RouteHasNoRouteAction) {
19761976 RouteConfiguration route_config =
19771977 balancers_[0 ]->ads_service ()->default_route_config ();
19781978 route_config.mutable_virtual_hosts (0 )->mutable_routes (0 )->mutable_redirect ();
1979- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1979+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19801980 kDefaultResourceName );
19811981 SetNextResolution ({});
19821982 SetNextResolutionForLbChannelAllBalancers ();
@@ -1995,7 +1995,7 @@ TEST_P(RdsTest, RouteActionHasNoCluster) {
19951995 ->mutable_routes (0 )
19961996 ->mutable_route ()
19971997 ->mutable_cluster_header ();
1998- balancers_[0 ]->ads_service ()->SetRdsResource (std::move ( route_config) ,
1998+ balancers_[0 ]->ads_service ()->SetRdsResource (route_config,
19991999 kDefaultResourceName );
20002000 SetNextResolution ({});
20012001 SetNextResolutionForLbChannelAllBalancers ();
@@ -2030,8 +2030,7 @@ TEST_P(CdsTest, Vanilla) {
20302030TEST_P (CdsTest, WrongClusterType) {
20312031 auto cluster = balancers_[0 ]->ads_service ()->default_cluster ();
20322032 cluster.set_type (envoy::api::v2::Cluster::STATIC);
2033- balancers_[0 ]->ads_service ()->SetCdsResource (std::move (cluster),
2034- kDefaultResourceName );
2033+ balancers_[0 ]->ads_service ()->SetCdsResource (cluster, kDefaultResourceName );
20352034 SetNextResolution ({});
20362035 SetNextResolutionForLbChannelAllBalancers ();
20372036 CheckRpcSendFailure ();
@@ -2044,8 +2043,7 @@ TEST_P(CdsTest, WrongClusterType) {
20442043TEST_P (CdsTest, WrongEdsConfig) {
20452044 auto cluster = balancers_[0 ]->ads_service ()->default_cluster ();
20462045 cluster.mutable_eds_cluster_config ()->mutable_eds_config ()->mutable_self ();
2047- balancers_[0 ]->ads_service ()->SetCdsResource (std::move (cluster),
2048- kDefaultResourceName );
2046+ balancers_[0 ]->ads_service ()->SetCdsResource (cluster, kDefaultResourceName );
20492047 SetNextResolution ({});
20502048 SetNextResolutionForLbChannelAllBalancers ();
20512049 CheckRpcSendFailure ();
@@ -2058,8 +2056,7 @@ TEST_P(CdsTest, WrongEdsConfig) {
20582056TEST_P (CdsTest, WrongLbPolicy) {
20592057 auto cluster = balancers_[0 ]->ads_service ()->default_cluster ();
20602058 cluster.set_lb_policy (envoy::api::v2::Cluster::LEAST_REQUEST);
2061- balancers_[0 ]->ads_service ()->SetCdsResource (std::move (cluster),
2062- kDefaultResourceName );
2059+ balancers_[0 ]->ads_service ()->SetCdsResource (cluster, kDefaultResourceName );
20632060 SetNextResolution ({});
20642061 SetNextResolutionForLbChannelAllBalancers ();
20652062 CheckRpcSendFailure ();
@@ -2072,8 +2069,7 @@ TEST_P(CdsTest, WrongLbPolicy) {
20722069TEST_P (CdsTest, WrongLrsServer) {
20732070 auto cluster = balancers_[0 ]->ads_service ()->default_cluster ();
20742071 cluster.mutable_lrs_server ()->mutable_ads ();
2075- balancers_[0 ]->ads_service ()->SetCdsResource (std::move (cluster),
2076- kDefaultResourceName );
2072+ balancers_[0 ]->ads_service ()->SetCdsResource (cluster, kDefaultResourceName );
20772073 SetNextResolution ({});
20782074 SetNextResolutionForLbChannelAllBalancers ();
20792075 CheckRpcSendFailure ();
0 commit comments