OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <string> |
5 #include <gtest/gtest.h> | 6 #include <gtest/gtest.h> |
6 #include "update_engine/action.h" | 7 #include "update_engine/action.h" |
7 #include "update_engine/action_processor.h" | 8 #include "update_engine/action_processor.h" |
8 | 9 |
| 10 using std::string; |
| 11 |
9 namespace chromeos_update_engine { | 12 namespace chromeos_update_engine { |
10 | 13 |
11 using chromeos_update_engine::ActionPipe; | 14 using chromeos_update_engine::ActionPipe; |
12 | 15 |
13 class ActionTestAction; | 16 class ActionTestAction; |
14 | 17 |
15 template<> | 18 template<> |
16 class ActionTraits<ActionTestAction> { | 19 class ActionTraits<ActionTestAction> { |
17 public: | 20 public: |
18 typedef string OutputObjectType; | 21 typedef string OutputObjectType; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 action_processor.EnqueueAction(&action); | 53 action_processor.EnqueueAction(&action); |
51 EXPECT_EQ(&action_processor, action.processor()); | 54 EXPECT_EQ(&action_processor, action.processor()); |
52 | 55 |
53 action_processor.StartProcessing(); | 56 action_processor.StartProcessing(); |
54 EXPECT_TRUE(action.IsRunning()); | 57 EXPECT_TRUE(action.IsRunning()); |
55 action.CompleteAction(); | 58 action.CompleteAction(); |
56 EXPECT_FALSE(action.IsRunning()); | 59 EXPECT_FALSE(action.IsRunning()); |
57 } | 60 } |
58 | 61 |
59 } // namespace chromeos_update_engine | 62 } // namespace chromeos_update_engine |
OLD | NEW |