OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "files/public/c/tests/mock_errno_impl.h" | 5 #include "files/c/tests/mock_errno_impl.h" |
6 | 6 |
7 namespace mojio { | 7 namespace mojio { |
8 namespace test { | 8 namespace test { |
9 | 9 |
10 int MockErrnoImpl::Get() const { | 10 int MockErrnoImpl::Get() const { |
11 return last_error_; | 11 return last_error_; |
12 } | 12 } |
13 | 13 |
14 void MockErrnoImpl::Set(int error) { | 14 void MockErrnoImpl::Set(int error) { |
15 last_error_ = error; | 15 last_error_ = error; |
16 was_set_ = true; | 16 was_set_ = true; |
17 } | 17 } |
18 | 18 |
19 } // namespace test | 19 } // namespace test |
20 } // namespace mojio | 20 } // namespace mojio |
OLD | NEW |