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

Side by Side Diff: src/platform/update_engine/action_unittest.cc

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp Created 11 years 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/platform/update_engine/action_processor_unittest.cc ('k') | src/platform/update_engine/delta_diff_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698