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

Side by Side Diff: src/platform/update_engine/test_utils.h

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 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 0xe4, 0x85, 0x1c, 0xd6, 0x92, 0x50, 0x2c, 0x98, 81 0xe4, 0x85, 0x1c, 0xd6, 0x92, 0x50, 0x2c, 0x98,
82 0x36, 0xfe, 0x87, 0xaf, 0x43, 0x8f, 0x8f, 0xf5, 82 0x36, 0xfe, 0x87, 0xaf, 0x43, 0x8f, 0x8f, 0xf5,
83 0x88, 0x48, 0x18, 0x42, 0xcf, 0x42, 0xc1, 0xa8, 83 0x88, 0x48, 0x18, 0x42, 0xcf, 0x42, 0xc1, 0xa8,
84 0xe8, 0x05, 0x08, 0xa1, 0x45, 0x70, 0x5b, 0x8c, 84 0xe8, 0x05, 0x08, 0xa1, 0x45, 0x70, 0x5b, 0x8c,
85 0x39, 0x28, 0xab, 0xe9, 0x6b, 0x51, 0xd2, 0xcb, 85 0x39, 0x28, 0xab, 0xe9, 0x6b, 0x51, 0xd2, 0xcb,
86 0x30, 0x04, 0xea, 0x7d, 0x2f, 0x6e, 0x6c, 0x3b, 86 0x30, 0x04, 0xea, 0x7d, 0x2f, 0x6e, 0x6c, 0x3b,
87 0x5f, 0x82, 0xd9, 0x5b, 0x89, 0x37, 0x65, 0x65, 87 0x5f, 0x82, 0xd9, 0x5b, 0x89, 0x37, 0x65, 0x65,
88 0xbe, 0x9f, 0xa3, 0x5d 88 0xbe, 0x9f, 0xa3, 0x5d
89 }; 89 };
90 90
91 const string kMountPath("/tmp/UpdateEngineTests_mnt"); 91 const char* const kMountPath = "/tmp/UpdateEngineTests_mnt";
92 } // namespace {} 92 } // namespace {}
93 93
94 // Creates an ext image with some files in it. The paths creates are 94 // Creates an ext image with some files in it. The paths creates are
95 // returned in out_paths. 95 // returned in out_paths.
96 void CreateExtImageAtPath(const std::string& path, 96 void CreateExtImageAtPath(const std::string& path,
97 std::vector<std::string>* out_paths); 97 std::vector<std::string>* out_paths);
98 98
99 // Verifies that for each path in paths, it exists in the filesystem under 99 // Verifies that for each path in paths, it exists in the filesystem under
100 // parent. Also, verifies that no additional paths are present under parent. 100 // parent. Also, verifies that no additional paths are present under parent.
101 // Also tests properties of various files created by CreateExtImageAtPath(). 101 // Also tests properties of various files created by CreateExtImageAtPath().
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 static std::string StaticType() { return "ObjectCollectorAction"; } 169 static std::string StaticType() { return "ObjectCollectorAction"; }
170 std::string Type() const { return StaticType(); } 170 std::string Type() const { return StaticType(); }
171 const T& object() const { return object_; } 171 const T& object() const { return object_; }
172 private: 172 private:
173 T object_; 173 T object_;
174 }; 174 };
175 175
176 } // namespace chromeos_update_engine 176 } // namespace chromeos_update_engine
177 177
178 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__ 178 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_TEST_UTILS_H__
OLDNEW
« no previous file with comments | « src/platform/update_engine/postinstall_runner_action_unittest.cc ('k') | src/platform/update_engine/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698