| 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 #ifndef SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ | 5 #ifndef SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ |
| 6 #define SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ | 6 #define SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ |
| 7 | 7 |
| 8 #include "files/public/c/lib/errno_impl.h" | 8 #include "files/c/lib/errno_impl.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | 9 #include "mojo/public/cpp/system/macros.h" |
| 10 | 10 |
| 11 namespace mojio { | 11 namespace mojio { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 class MockErrnoImpl : public ErrnoImpl { | 14 class MockErrnoImpl : public ErrnoImpl { |
| 15 public: | 15 public: |
| 16 explicit MockErrnoImpl(int error) : last_error_(error), was_set_(false) {} | 16 explicit MockErrnoImpl(int error) : last_error_(error), was_set_(false) {} |
| 17 ~MockErrnoImpl() override {} | 17 ~MockErrnoImpl() override {} |
| 18 | 18 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 int last_error_; | 32 int last_error_; |
| 33 bool was_set_; | 33 bool was_set_; |
| 34 | 34 |
| 35 MOJO_DISALLOW_COPY_AND_ASSIGN(MockErrnoImpl); | 35 MOJO_DISALLOW_COPY_AND_ASSIGN(MockErrnoImpl); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace test | 38 } // namespace test |
| 39 } // namespace mojio | 39 } // namespace mojio |
| 40 | 40 |
| 41 #endif // SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ | 41 #endif // SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_ |
| OLD | NEW |