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

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

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: mojo/services/files/public/c/tests/mock_errno_impl.h
diff --git a/mojo/services/files/public/c/tests/mock_errno_impl.h b/mojo/services/files/public/c/tests/mock_errno_impl.h
deleted file mode 100644
index b8bff2f7b0f3ab99f9865e8a2bf26496261f582e..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/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 "files/public/c/lib/errno_impl.h"
-#include "mojo/public/cpp/system/macros.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 | « mojo/services/files/public/c/tests/file_fd_impl_unittest.cc ('k') | mojo/services/files/public/c/tests/mock_errno_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698