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

Side by Side Diff: make_tests.h

Issue 6598009: Deprecating tracked_directories as a Vault parameter (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: Created 9 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « cryptohome.xml ('k') | make_tests.cc » ('j') | service.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009-2010 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 // Creates credential stores for testing. This class is only used in prepping 5 // Creates credential stores for testing. This class is only used in prepping
6 // the test data for unit tests. 6 // the test data for unit tests.
7 7
8 #ifndef CRYPTOHOME_MAKE_TESTS_H_ 8 #ifndef CRYPTOHOME_MAKE_TESTS_H_
9 #define CRYPTOHOME_MAKE_TESTS_H_ 9 #define CRYPTOHOME_MAKE_TESTS_H_
10 10
11 #include <base/basictypes.h> 11 #include <base/basictypes.h>
12 #include <string> 12 #include <string>
13 13
14 namespace cryptohome { 14 namespace cryptohome {
15 15
16 struct TestUserInfo { 16 struct TestUserInfo {
17 const char* username; 17 const char* username;
18 const char* password; 18 const char* password;
19 bool create; 19 bool create;
20 bool use_old_format; 20 bool use_old_format;
21 const char* tracked_dirs[2];
22 }; 21 };
23 22
24 extern const TestUserInfo kDefaultUsers[]; 23 extern const TestUserInfo kDefaultUsers[];
25 extern const size_t kDefaultUserCount; 24 extern const size_t kDefaultUserCount;
26 extern const TestUserInfo kAlternateUsers[]; 25 extern const TestUserInfo kAlternateUsers[];
27 extern const size_t kAlternateUserCount; 26 extern const size_t kAlternateUserCount;
28 27
29 class MakeTests { 28 class MakeTests {
30 public: 29 public:
31 MakeTests(); 30 MakeTests();
32 31
33 virtual ~MakeTests() { } 32 virtual ~MakeTests() { }
34 33
35 void InitTestData(const std::string& image_dir, 34 void InitTestData(const std::string& image_dir,
36 const TestUserInfo* test_users, 35 const TestUserInfo* test_users,
37 size_t test_user_count); 36 size_t test_user_count);
38 37
39 private: 38 private:
40 DISALLOW_COPY_AND_ASSIGN(MakeTests); 39 DISALLOW_COPY_AND_ASSIGN(MakeTests);
41 }; 40 };
42 41
43 } // namespace cryptohome 42 } // namespace cryptohome
44 43
45 #endif // CRYPTOHOME_MAKE_TESTS_H_ 44 #endif // CRYPTOHOME_MAKE_TESTS_H_
OLDNEW
« no previous file with comments | « cryptohome.xml ('k') | make_tests.cc » ('j') | service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698