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

Unified Diff: test_utils.h

Issue 3022008: For actions, switch bool success into an exit code. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: switch to all positive error codes. Created 10 years, 5 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 | « set_bootable_flag_action.cc ('k') | update_attempter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_utils.h
diff --git a/test_utils.h b/test_utils.h
index ca797d96508c3870324d088207d7d91946a6cb58..9f2fee29aa1c6dffff2e03ed91a3da05ed3d00b9 100644
--- a/test_utils.h
+++ b/test_utils.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -162,7 +162,7 @@ struct ObjectFeederAction : public Action<ObjectFeederAction<T> > {
if (this->HasOutputPipe()) {
this->SetOutputObject(out_obj_);
}
- this->processor_->ActionComplete(this, true);
+ this->processor_->ActionComplete(this, kActionCodeSuccess);
}
static std::string StaticType() { return "ObjectFeederAction"; }
std::string Type() const { return StaticType(); }
@@ -196,7 +196,7 @@ struct ObjectCollectorAction : public Action<ObjectCollectorAction<T> > {
if (this->HasInputObject()) {
object_ = this->GetInputObject();
}
- this->processor_->ActionComplete(this, true);
+ this->processor_->ActionComplete(this, kActionCodeSuccess);
}
static std::string StaticType() { return "ObjectCollectorAction"; }
std::string Type() const { return StaticType(); }
« no previous file with comments | « set_bootable_flag_action.cc ('k') | update_attempter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698