Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Combined Http Writer and Parser Projects (#2256)
Browse files Browse the repository at this point in the history
* Bug fix in BufferWriter

* Combined Http Writer/Parser Projects
  • Loading branch information
KrzysztofCwalina authored May 4, 2018
1 parent 35e606e commit 2162242
Show file tree
Hide file tree
Showing 33 changed files with 17 additions and 95 deletions.
30 changes: 0 additions & 30 deletions corefxlab.sln
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Buffers.Primitives",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Buffers.Primitives.Tests", "tests\System.Buffers.Primitives.Tests\System.Buffers.Primitives.Tests.csproj", "{5E04C824-5961-445E-85E2-8AC27C9AA761}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Http.Parser", "src\System.Text.Http.Parser\System.Text.Http.Parser.csproj", "{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Http.Parser.Tests", "tests\System.Text.Http.Parser.Tests\System.Text.Http.Parser.Tests.csproj", "{793E4C5F-33B9-44AA-BE44-54EE624E79CB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Utf8String", "src\System.Text.Utf8String\System.Text.Utf8String.csproj", "{07CC9F28-FC67-453B-9057-AC9025E5CA67}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Text.Utf8String.Tests", "tests\System.Text.Utf8String.Tests\System.Text.Utf8String.Tests.csproj", "{C6F061D6-18D6-41E3-A692-C0603A994F30}"
Expand Down Expand Up @@ -464,30 +460,6 @@ Global
{5E04C824-5961-445E-85E2-8AC27C9AA761}.Release|x64.Build.0 = Release|Any CPU
{5E04C824-5961-445E-85E2-8AC27C9AA761}.Release|x86.ActiveCfg = Release|Any CPU
{5E04C824-5961-445E-85E2-8AC27C9AA761}.Release|x86.Build.0 = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|x64.ActiveCfg = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|x64.Build.0 = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|x86.ActiveCfg = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Debug|x86.Build.0 = Debug|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|Any CPU.Build.0 = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|x64.ActiveCfg = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|x64.Build.0 = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|x86.ActiveCfg = Release|Any CPU
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA}.Release|x86.Build.0 = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|x64.ActiveCfg = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|x64.Build.0 = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|x86.ActiveCfg = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Debug|x86.Build.0 = Debug|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|Any CPU.Build.0 = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|x64.ActiveCfg = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|x64.Build.0 = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|x86.ActiveCfg = Release|Any CPU
{793E4C5F-33B9-44AA-BE44-54EE624E79CB}.Release|x86.Build.0 = Release|Any CPU
{07CC9F28-FC67-453B-9057-AC9025E5CA67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07CC9F28-FC67-453B-9057-AC9025E5CA67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07CC9F28-FC67-453B-9057-AC9025E5CA67}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -619,8 +591,6 @@ Global
{1ED92192-6C2A-44A5-9098-F9CBABB0292D} = {3079E458-D0E6-4F99-8CAB-80011D35C7DA}
{AABC47B4-F133-4B16-920B-9BDCE22F7E97} = {4B000021-5278-4F2A-B734-DE49F55D4024}
{5E04C824-5961-445E-85E2-8AC27C9AA761} = {3079E458-D0E6-4F99-8CAB-80011D35C7DA}
{C5BFA7A3-A2BC-42A9-BCDF-0CD16D5903AA} = {4B000021-5278-4F2A-B734-DE49F55D4024}
{793E4C5F-33B9-44AA-BE44-54EE624E79CB} = {3079E458-D0E6-4F99-8CAB-80011D35C7DA}
{07CC9F28-FC67-453B-9057-AC9025E5CA67} = {4B000021-5278-4F2A-B734-DE49F55D4024}
{C6F061D6-18D6-41E3-A692-C0603A994F30} = {3079E458-D0E6-4F99-8CAB-80011D35C7DA}
{662968A7-5BCC-467B-A814-38584D0184CD} = {4B000021-5278-4F2A-B734-DE49F55D4024}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<None Remove="LowAllocationWebServerLibrary\obj\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\System.Text.Http.Parser\System.Text.Http.Parser.csproj" />
<ProjectReference Include="..\..\src\System.Text.Json\System.Text.Json.csproj" />
<ProjectReference Include="..\..\src\System.Text.Http\System.Text.Http.csproj" />
<ProjectReference Include="..\..\src\System.Text.Formatting\System.Text.Formatting.csproj" />
Expand Down
14 changes: 0 additions & 14 deletions src/System.Text.Http.Parser/System.Text.Http.Parser.csproj

This file was deleted.

4 changes: 1 addition & 3 deletions src/System.Text.Http/System.Text.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
<Description>Non-allocating HTTP parser</Description>
<TargetFramework>netstandard1.3</TargetFramework>
<PackageTags>HTTP parser parsing .NET non-allocating corefxlab</PackageTags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<LangVersion>7.2</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\System.Buffers.ReaderWriter\System.Buffers.ReaderWriter.csproj" />
<ProjectReference Include="..\System.Text.Formatting\System.Text.Formatting.csproj" />
<ProjectReference Include="..\System.Text.Http.Parser\System.Text.Http.Parser.csproj" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion tests/Benchmarks/Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<ProjectReference Include="..\..\src\System.Binary.Base64\System.Binary.Base64.csproj" />
<ProjectReference Include="..\..\src\System.Buffers.ReaderWriter\System.Buffers.ReaderWriter.csproj" />
<ProjectReference Include="..\..\src\System.Text.Encodings.Web.Utf8\System.Text.Encodings.Web.Utf8.csproj" />
<ProjectReference Include="..\..\src\System.Text.Http.Parser\System.Text.Http.Parser.csproj" />
<ProjectReference Include="..\..\src\System.Text.Http\System.Text.Http.csproj" />
<ProjectReference Include="..\..\src\System.Text.Json\System.Text.Json.csproj" />
<ProjectReference Include="..\..\src\System.Text.Utf8String\System.Text.Utf8String.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.IO.Pipelines.Testing;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Buffers.Testing;
using Xunit;

namespace System.Buffers.Tests
Expand Down
7 changes: 5 additions & 2 deletions tests/System.Buffers.Primitives.Tests/BufferSegment.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using System.Buffers;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
using System.Text;

namespace System.IO.Pipelines.Testing
namespace System.Buffers.Testing
{
internal class BufferSegment : ReadOnlySequenceSegment<byte>
{
Expand Down
3 changes: 1 addition & 2 deletions tests/System.Buffers.Primitives.Tests/BufferUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Buffers;
using System.Text;

namespace System.IO.Pipelines.Testing
namespace System.Buffers.Testing
{
public class BufferUtilities
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// See the LICENSE file in the project root for more information.

using System.Buffers;
using System.Buffers.Testing;
using System.Collections.Generic;
using System.IO.Pipelines.Testing;
using System.Text;

namespace System.IO.Pipelines.Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using System.Buffers;
using System.IO.Pipelines.Testing;
using System.Buffers.Testing;
using System.Linq;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Buffers;
using System.Buffers.Reader;
using System.IO.Pipelines.Testing;
using System.Buffers.Testing;
using Xunit;

namespace System.IO.Pipelines.Tests
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Buffers;
using System.Buffers.Testing;
using System.Buffers.Text;
using System.Collections.Generic;
using System.IO.Pipelines.Testing;
using System.Linq;
using Xunit;

Expand Down
1 change: 1 addition & 0 deletions tests/System.Text.Http.Tests/System.Text.Http.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<!-- Project references -->
<ItemGroup>
<ProjectReference Include="..\..\src\System.Text.Http\System.Text.Http.csproj" />
<ProjectReference Include="..\..\tests\System.Buffers.Primitives.Tests\System.Buffers.Primitives.Tests.csproj" />
</ItemGroup>
<!-- register for test discovery in Visual Studio -->
<ItemGroup>
Expand Down

0 comments on commit 2162242

Please sign in to comment.