Sfoglia il codice sorgente

added sanity checked format

Danny Reidenbach 5 anni fa
parent
commit
d89d5ea695
1 ha cambiato i file con 6 aggiunte e 25 eliminazioni
  1. 6 25
      test/cpp/common/alts_util_test.cc

+ 6 - 25
test/cpp/common/alts_util_test.cc

@@ -83,11 +83,6 @@ TEST(AltsUtilTest, AuthContextWithGoodAltsContextWithoutRpcVersions) {
   std::string expected_rp("record protocol");
   std::string expected_peer("peer");
   std::string expected_local("local");
-<<<<<<< HEAD
-
-  //doggo
-=======
->>>>>>> 8900f41dafc213da9aceac8c81daa2208d656e9c
   std::string expected_peer_atrributes_key("peer");
   std::string expected_peer_atrributes_value("attributes");
 
@@ -104,22 +99,13 @@ TEST(AltsUtilTest, AuthContextWithGoodAltsContextWithoutRpcVersions) {
   grpc_gcp_AltsContext_set_local_service_account(
       context,
       upb_strview_make(expected_local.data(), expected_local.length()));
-
-<<<<<<< HEAD
-grpc_gcp_AltsContext_peer_attributes_set(context,
-      upb_strview_make(expected_peer_atrributes_key.data(), expected_peer_atrributes_key.length()),
-      upb_strview_make(expected_peer_atrributes_value.data(), expected_peer_atrributes_value.length()),
+  grpc_gcp_AltsContext_peer_attributes_set(
+      context,
+      upb_strview_make(expected_peer_atrributes_key.data(), 
+                       expected_peer_atrributes_key.length()),
+      upb_strview_make(expected_peer_atrributes_value.data(), 
+                       expected_peer_atrributes_value.length()),
       context_arena.ptr()); 
-=======
-grpc_gcp_AltsContext_peer_attributes_set(
-    context,
-    upb_strview_make(expected_peer_atrributes_key.data(), 
-                     expected_peer_atrributes_key.length()),
-    upb_strview_make(expected_peer_atrributes_value.data(), 
-                     expected_peer_atrributes_value.length()),
-    context_arena.ptr()); 
->>>>>>> 8900f41dafc213da9aceac8c81daa2208d656e9c
-
   size_t serialized_ctx_length;
   char* serialized_ctx = grpc_gcp_AltsContext_serialize(
       context, context_arena.ptr(), &serialized_ctx_length);
@@ -141,13 +127,8 @@ grpc_gcp_AltsContext_peer_attributes_set(
   EXPECT_EQ(0, rpc_protocol_versions.max_rpc_version.minor_version);
   EXPECT_EQ(0, rpc_protocol_versions.min_rpc_version.major_version);
   EXPECT_EQ(0, rpc_protocol_versions.min_rpc_version.minor_version);
-
-<<<<<<< HEAD
-  EXPECT_EQ(expected_peer_atrributes_value, alts_context->peer_attributes()[expected_peer_atrributes_key]);
-=======
   EXPECT_EQ(expected_peer_atrributes_value, 
             alts_context->peer_attributes()[expected_peer_atrributes_key]);
->>>>>>> 8900f41dafc213da9aceac8c81daa2208d656e9c
 }
 
 TEST(AltsUtilTest, AuthContextWithGoodAltsContext) {