Return-Path: X-Original-To: apmail-avro-commits-archive@www.apache.org Delivered-To: apmail-avro-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE6A81064D for ; Wed, 10 Dec 2014 15:28:19 +0000 (UTC) Received: (qmail 55356 invoked by uid 500); 10 Dec 2014 15:28:19 -0000 Delivered-To: apmail-avro-commits-archive@avro.apache.org Received: (qmail 55320 invoked by uid 500); 10 Dec 2014 15:28:19 -0000 Mailing-List: contact commits-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list commits@avro.apache.org Received: (qmail 55310 invoked by uid 99); 10 Dec 2014 15:28:19 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 15:28:19 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 2CFD4AC0946; Wed, 10 Dec 2014 15:28:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1644454 - /avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs Date: Wed, 10 Dec 2014 15:28:15 -0000 To: commits@avro.apache.org From: tomwhite@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141210152815.2CFD4AC0946@hades.apache.org> Author: tomwhite Date: Wed Dec 10 15:28:14 2014 New Revision: 1644454 URL: http://svn.apache.org/r1644454 Log: AVRO-1602. Remove Dapper-style RPC trace facility (for CSharp). Modified: avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs Modified: avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs URL: http://svn.apache.org/viewvc/avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs?rev=1644454&r1=1644453&r2=1644454&view=diff ============================================================================== --- avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs (original) +++ avro/trunk/lang/csharp/src/apache/test/CodGen/CodeGenTest.cs Wed Dec 10 15:28:14 2014 @@ -99,38 +99,6 @@ namespace Avro.Test } - [Test] - public void CanCodeGenTraceProtocol() - { - var traceProtocol = - System.IO.File.ReadAllText("../../../../../share/schemas/org/apache/avro/ipc/trace/avroTrace.avpr"); - Protocol protocol = Protocol.Parse(traceProtocol); - var compilerResults = GenerateProtocol(protocol); - - // instantiate object - List types = GetTypeFullNames(compilerResults.CompiledAssembly.GetTypes()); - Assert.AreEqual(6, types.Count); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.ID"), "Should have contained ID type"); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.Span"), "Should have contained Span type"); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.SpanEvent"), "Should have contained SpanEvent type"); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.TimestampedEvent"), - "Should have contained TimestampedEvent type"); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.AvroTrace"), "Should have contained SpanEvent type"); - Assert.IsTrue(types.Contains("org.apache.avro.ipc.trace.AvroTraceCallback"), - "Should have contained TimestampedEvent type"); - } - - private static List GetTypeFullNames(Type[] types) - { - var typeFullNames = new List(); - foreach (var type in types) - { - typeFullNames.Add(type.FullName); - } - return typeFullNames; - } - - private static CompilerResults GenerateSchema(Schema schema) { var codegen = new CodeGen(); @@ -138,13 +106,6 @@ namespace Avro.Test return GenerateAssembly(codegen); } - private static CompilerResults GenerateProtocol(Protocol protocol) - { - var codegen = new CodeGen(); - codegen.AddProtocol(protocol); - return GenerateAssembly(codegen); - } - private static CompilerResults GenerateAssembly(CodeGen schema) { var compileUnit = schema.GenerateCode();