OLD | NEW |
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 MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ | 5 #ifndef MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ |
6 #define MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ | 6 #define MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "third_party/WebKit/public/platform/WebURLError.h" | 9 #include "third_party/WebKit/public/platform/WebURLError.h" |
9 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 10 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
10 #include "url/gurl.h" | 11 #include "url/gurl.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 // Generates WebURLErrors and WebURLResponses suitable for testing purposes. | 15 // Generates WebURLErrors and WebURLResponses suitable for testing purposes. |
15 class TestResponseGenerator { | 16 class TestResponseGenerator { |
16 public: | 17 public: |
17 enum Flags { | 18 enum Flags { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 private: | 69 private: |
69 GURL gurl_; | 70 GURL gurl_; |
70 int64_t content_length_; | 71 int64_t content_length_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(TestResponseGenerator); | 73 DISALLOW_COPY_AND_ASSIGN(TestResponseGenerator); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace media | 76 } // namespace media |
76 | 77 |
77 #endif // MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ | 78 #endif // MEDIA_BLINK_TEST_RESPONSE_GENERATOR_H_ |
OLD | NEW |