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

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

Issue 1060683002: Update clang, re-enable checker, fix issues it flags (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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: services/files/c/tests/mock_errno_impl.cc
diff --git a/services/files/c/tests/mock_errno_impl.cc b/services/files/c/tests/mock_errno_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..09bd4dc1e7d45371a42ea4037daf56e36b355c8b
--- /dev/null
+++ b/services/files/c/tests/mock_errno_impl.cc
@@ -0,0 +1,20 @@
+// 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.
+
+#include "services/files/c/tests/mock_errno_impl.h"
+
+namespace mojio {
+namespace test {
+
+int MockErrnoImpl::Get() const {
+ return last_error_;
+}
+
+void MockErrnoImpl::Set(int error) {
+ last_error_ = error;
+ was_set_ = true;
+}
+
+} // namespace test
+} // namespace mojio

Powered by Google App Engine
This is Rietveld 408576698