summaryrefslogtreecommitdiff
path: root/action_processor_unittest.cc
diff options
context:
space:
mode:
authorDavid Zeuthen <zeuthen@chromium.org>2013-04-29 13:42:47 -0700
committerChromeBot <chrome-bot@google.com>2013-04-30 19:03:07 -0700
commita99981fda75fe0b17e96c700e3ddc93eca1cebe5 (patch)
tree88ec1486cf36f378acaf666c61a56ea533966caa /action_processor_unittest.cc
parent8a075a75a13a2b182c229f3095c20e69f8f8f999 (diff)
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>
Diffstat (limited to 'action_processor_unittest.cc')
-rw-r--r--action_processor_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/action_processor_unittest.cc b/action_processor_unittest.cc
index 20a79af7..20bded6b 100644
--- a/action_processor_unittest.cc
+++ b/action_processor_unittest.cc
@@ -33,7 +33,7 @@ class ActionProcessorTestAction : public Action<ActionProcessorTestAction> {
void PerformAction() {}
void CompleteAction() {
ASSERT_TRUE(processor());
- processor()->ActionComplete(this, kActionCodeSuccess);
+ processor()->ActionComplete(this, kErrorCodeSuccess);
}
string Type() const { return "ActionProcessorTestAction"; }
};
@@ -66,10 +66,10 @@ class MyActionProcessorDelegate : public ActionProcessorDelegate {
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 @@ class MyActionProcessorDelegate : public ActionProcessorDelegate {
}
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 @@ class MyActionProcessorDelegate : public ActionProcessorDelegate {
bool processing_done_called_;
bool processing_stopped_called_;
bool action_completed_called_;
- ActionExitCode action_exit_code_;
+ ErrorCode action_exit_code_;
};
} // namespace {}