Skip to content

Commit 10e0ae7

Browse files
authored
Fixup some formatting in shared code (#63156)
1 parent 00c1692 commit 10e0ae7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static bool TryReadSlow(ref SequenceReader<byte> reader, out long value)
109109
InitialTwoByteLengthMask => 2,
110110
InitialFourByteLengthMask => 4,
111111
_ => 8 // LengthEightByte
112-
};
112+
};
113113

114114
Span<byte> temp = (stackalloc byte[8])[..length];
115115
if (reader.TryCopyTo(temp))

src/libraries/Common/tests/Tests/System/Net/aspnetcore/Http2/HPackDecoderTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Buffers;
5-
using System.Linq;
65
using System.Collections.Generic;
7-
using System.Text;
6+
using System.Linq;
87
using System.Net.Http.HPack;
8+
using System.Text;
99
using Xunit;
1010
#if KESTREL
1111
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;

src/libraries/Common/tests/Tests/System/Net/aspnetcore/Http3/QPackDecoderTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Buffers;
5-
using System.Linq;
65
using System.Collections.Generic;
6+
using System.Linq;
7+
using System.Net.Http.HPack;
8+
using System.Net.Http.QPack;
79
using System.Text;
810
using Xunit;
9-
using System.Net.Http.QPack;
10-
using System.Net.Http.HPack;
1111
using HeaderField = System.Net.Http.QPack.HeaderField;
1212
#if KESTREL
1313
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
@@ -236,7 +236,7 @@ private static void TestDecode(byte[] encoded, KeyValuePair<string, string>[] ex
236236
else
237237
{
238238
int chunkSize = bytesAtATime.Value;
239-
239+
240240
// Parse data in chunks, separated by empty chunks
241241
for (int i = 0; i < encoded.Length; i += chunkSize)
242242
{

src/libraries/Common/tests/Tests/System/Net/aspnetcore/Http3/VariableLengthIntegerHelperTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void TryWrite_BufferNotEmpty_OneByteLimit(long longToEncode)
276276
[Theory]
277277
[InlineData(64, new byte[] { 64, 64 })]
278278
[InlineData(66, new byte[] { 64, 66 })]
279-
[InlineData(16383, new byte[] { 127, 255})]
279+
[InlineData(16383, new byte[] { 127, 255 })]
280280
public void TryWrite_BufferNotEmpty_TwoByteLimit(long longToEncode,
281281
byte[] expected)
282282
{
@@ -302,7 +302,7 @@ public void TryWrite_BufferNotSizedCorrectly_TwoByteLimit()
302302
}
303303

304304
[Theory]
305-
[InlineData(16384, new byte[] {128, 0, 64, 0})]
305+
[InlineData(16384, new byte[] {128, 0, 64, 0 })]
306306
[InlineData(16386, new byte[] { 128, 0, 64, 2 })]
307307
[InlineData(1073741823, new byte[] { 191, 255, 255, 255 })]
308308
public void TryWrite_BufferNotEmpty_FourByteLimit(long longToEncode,

0 commit comments

Comments
 (0)