Rename ActionExitCode to ErrorCode
Nowadays ActionExitCode is used throughout the codebase so use a more
generic name to reflect this.
BUG=chromium:216507
TEST=unit tests pass
Change-Id: I23d1d7e2676443251dbc42ed137fd018aadfa8a3
Reviewed-on: https://gerrit.chromium.org/gerrit/49512
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: David Zeuthen <zeuthen@chromium.org>
Tested-by: David Zeuthen <zeuthen@chromium.org>
diff --git a/action_processor_unittest.cc b/action_processor_unittest.cc
index 20a79af..20bded6 100644
--- a/action_processor_unittest.cc
+++ b/action_processor_unittest.cc
@@ -33,7 +33,7 @@
void PerformAction() {}
void CompleteAction() {
ASSERT_TRUE(processor());
- processor()->ActionComplete(this, kActionCodeSuccess);
+ processor()->ActionComplete(this, kErrorCodeSuccess);
}
string Type() const { return "ActionProcessorTestAction"; }
};
@@ -66,10 +66,10 @@
processing_done_called_(false),
processing_stopped_called_(false),
action_completed_called_(false),
- action_exit_code_(kActionCodeError) {}
+ action_exit_code_(kErrorCodeError) {}
virtual void ProcessingDone(const ActionProcessor* processor,
- ActionExitCode code) {
+ ErrorCode code) {
EXPECT_EQ(processor_, processor);
EXPECT_FALSE(processing_done_called_);
processing_done_called_ = true;
@@ -81,7 +81,7 @@
}
virtual void ActionCompleted(ActionProcessor* processor,
AbstractAction* action,
- ActionExitCode code) {
+ ErrorCode code) {
EXPECT_EQ(processor_, processor);
EXPECT_FALSE(action_completed_called_);
action_completed_called_ = true;
@@ -92,7 +92,7 @@
bool processing_done_called_;
bool processing_stopped_called_;
bool action_completed_called_;
- ActionExitCode action_exit_code_;
+ ErrorCode action_exit_code_;
};
} // namespace {}