Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Delta Between Two Patch Sets: Src/GoogleApis.Tests/Apis/Download/MediaDownloaderTest.cs

Issue 13096044: Issue 146: Pass override HTTP header when request URI too long (Closed)
Left Patch Set: Created 10 years, 7 months ago
Right Patch Set: Refactor namespace Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 Copyright 2013 Google Inc 2 Copyright 2013 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 10 matching lines...) Expand all
21 using System.Net.Http; 21 using System.Net.Http;
22 using System.Net.Http.Headers; 22 using System.Net.Http.Headers;
23 using System.Text; 23 using System.Text;
24 using System.Threading; 24 using System.Threading;
25 using System.Threading.Tasks; 25 using System.Threading.Tasks;
26 26
27 using NUnit.Framework; 27 using NUnit.Framework;
28 28
29 using Google.Apis.Download; 29 using Google.Apis.Download;
30 using Google.Apis.Services; 30 using Google.Apis.Services;
31 using Google.Apis.Testing;
32 31
33 namespace Google.Apis.Tests.Apis.Download 32 namespace Google.Apis.Tests.Apis.Download
34 { 33 {
35 /// <summary>Tests for the <see cref="Google.Apis.Download.MediaDownloader"/ >.</summary> 34 /// <summary>Tests for the <see cref="Google.Apis.Download.MediaDownloader"/ >.</summary>
36 [TestFixture] 35 [TestFixture]
37 class MediaDownloaderTest 36 class MediaDownloaderTest
38 { 37 {
39 /// <summary>The content the "server" uses to send to the client.</summa ry> 38 /// <summary>The content the "server" uses to send to the client.</summa ry>
40 static string MediaContent = @"Media content goes here. This is an examp le of test content."; 39 static string MediaContent = @"Media content goes here. This is an examp le of test content.";
41 40
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 232
234 byte[] read = new byte[1000]; 233 byte[] read = new byte[1000];
235 outputStream.Position = 0; 234 outputStream.Position = 0;
236 int length = outputStream.Read(read, 0, 1000); 235 int length = outputStream.Read(read, 0, 1000);
237 Assert.That(Encoding.UTF8.GetString(read, 0, length), Is.Equ alTo(MediaContent)); 236 Assert.That(Encoding.UTF8.GetString(read, 0, length), Is.Equ alTo(MediaContent));
238 } 237 }
239 } 238 }
240 } 239 }
241 } 240 }
242 } 241 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b