OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file defines MockFileStream, a test class for FileStream. | 5 // This file defines MockFileStream, a test class for FileStream. |
6 | 6 |
7 #ifndef NET_BASE_MOCK_FILE_STREAM_H_ | 7 #ifndef NET_BASE_MOCK_FILE_STREAM_H_ |
8 #define NET_BASE_MOCK_FILE_STREAM_H_ | 8 #define NET_BASE_MOCK_FILE_STREAM_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include <stdint.h> |
| 11 |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "net/base/file_stream.h" | 15 #include "net/base/file_stream.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 class IOBuffer; | 20 class IOBuffer; |
20 | 21 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 base::FilePath path_; | 98 base::FilePath path_; |
98 | 99 |
99 base::WeakPtrFactory<MockFileStream> weak_factory_; | 100 base::WeakPtrFactory<MockFileStream> weak_factory_; |
100 }; | 101 }; |
101 | 102 |
102 } // namespace testing | 103 } // namespace testing |
103 | 104 |
104 } // namespace net | 105 } // namespace net |
105 | 106 |
106 #endif // NET_BASE_MOCK_FILE_STREAM_H_ | 107 #endif // NET_BASE_MOCK_FILE_STREAM_H_ |
OLD | NEW |