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

Unified Diff: services/files/c/tests/mock_errno_impl.h

Issue 1133933002: Move //services/files/c -> //mojo/services/files/public/c. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove data dep Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/files/c/tests/file_fd_impl_unittest.cc ('k') | services/files/c/tests/mock_errno_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/c/tests/mock_errno_impl.h
diff --git a/services/files/c/tests/mock_errno_impl.h b/services/files/c/tests/mock_errno_impl.h
deleted file mode 100644
index 89a08f86cc7d869eaad232aca30bd5928a5c142f..0000000000000000000000000000000000000000
--- a/services/files/c/tests/mock_errno_impl.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_
-#define SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_
-
-#include "mojo/public/cpp/system/macros.h"
-#include "services/files/c/lib/errno_impl.h"
-
-namespace mojio {
-namespace test {
-
-class MockErrnoImpl : public ErrnoImpl {
- public:
- explicit MockErrnoImpl(int error) : last_error_(error), was_set_(false) {}
- ~MockErrnoImpl() override {}
-
- // |ErrnoImpl| implementation:
- int Get() const override;
- void Set(int error) override;
-
- // Reset to initial state (with specified value for |last_error_|).
- void Reset(int error) {
- last_error_ = error;
- was_set_ = false;
- }
-
- bool was_set() const { return was_set_; }
-
- private:
- int last_error_;
- bool was_set_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(MockErrnoImpl);
-};
-
-} // namespace test
-} // namespace mojio
-
-#endif // SERVICES_FILES_C_TESTS_MOCK_ERRNO_IMPL_H_
« no previous file with comments | « services/files/c/tests/file_fd_impl_unittest.cc ('k') | services/files/c/tests/mock_errno_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698