Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: media/blink/test_response_generator.h

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | media/blink/test_response_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_TEST_RESPONSE_GENERATOR_H_ 5 #ifndef MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_
6 #define CONTENT_RENDERER_MEDIA_TEST_RESPONSE_GENERATOR_H_ 6 #define MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/WebKit/public/platform/WebURLError.h" 9 #include "third_party/WebKit/public/platform/WebURLError.h"
10 #include "third_party/WebKit/public/platform/WebURLResponse.h" 10 #include "third_party/WebKit/public/platform/WebURLResponse.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace media {
14 14
15 // Generates WebURLErrors and WebURLResponses suitable for testing purposes. 15 // Generates WebURLErrors and WebURLResponses suitable for testing purposes.
16 class TestResponseGenerator { 16 class TestResponseGenerator {
17 public: 17 public:
18 enum Flags { 18 enum Flags {
19 kNormal = 0, 19 kNormal = 0,
20 kNoAcceptRanges = 1 << 0, // Don't include Accept-Ranges in 206 response. 20 kNoAcceptRanges = 1 << 0, // Don't include Accept-Ranges in 206 response.
21 kNoContentRange = 1 << 1, // Don't include Content-Range in 206 response. 21 kNoContentRange = 1 << 1, // Don't include Content-Range in 206 response.
22 kNoContentLength = 1 << 2, // Don't include Content-Length in 206 response. 22 kNoContentLength = 1 << 2, // Don't include Content-Length in 206 response.
23 kNoContentRangeInstanceSize = 1 << 3, // Content-Range: N-M/* in 206. 23 kNoContentRangeInstanceSize = 1 << 3, // Content-Range: N-M/* in 206.
(...skipping 30 matching lines...) Expand all
54 54
55 int64 content_length() { return content_length_; } 55 int64 content_length() { return content_length_; }
56 56
57 private: 57 private:
58 GURL gurl_; 58 GURL gurl_;
59 int64 content_length_; 59 int64 content_length_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(TestResponseGenerator); 61 DISALLOW_COPY_AND_ASSIGN(TestResponseGenerator);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace media
65 65
66 #endif // CONTENT_RENDERER_MEDIA_TEST_RESPONSE_GENERATOR_H_ 66 #endif // MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_
OLDNEW
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | media/blink/test_response_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698