Home
last modified time | relevance | path

Searched refs:OwnerManager (Results 1 – 13 of 13) sorted by relevance

/external/chromium/chrome/browser/chromeos/login/
Downer_manager_unittest.cc63 void InjectKeys(OwnerManager* manager) { in InjectKeys()
84 scoped_refptr<OwnerManager> manager(new OwnerManager); in TEST_F()
90 &OwnerManager::UpdateOwnerKey, in TEST_F()
100 scoped_refptr<OwnerManager> manager(new OwnerManager); in TEST_F()
111 &OwnerManager::LoadOwnerKey)); in TEST_F()
118 scoped_refptr<OwnerManager> manager(new OwnerManager); in TEST_F()
128 &OwnerManager::LoadOwnerKey)); in TEST_F()
136 scoped_refptr<OwnerManager> manager(new OwnerManager); in TEST_F()
148 &OwnerManager::LoadOwnerKey)); in TEST_F()
157 scoped_refptr<OwnerManager> manager(new OwnerManager); in TEST_F()
[all …]
Downer_manager.cc21 OwnerManager::OwnerManager() in OwnerManager() function in chromeos::OwnerManager
27 OwnerManager::~OwnerManager() {} in ~OwnerManager()
29 void OwnerManager::UpdateOwnerKey(const BrowserThread::ID thread_id, in UpdateOwnerKey()
38 NewRunnableMethod(this, &OwnerManager::CallKeyUpdateDelegate, d)); in UpdateOwnerKey()
41 void OwnerManager::LoadOwnerKey() { in LoadOwnerKey()
59 &OwnerManager::SendNotification, in LoadOwnerKey()
64 bool OwnerManager::EnsurePublicKey() { in EnsurePublicKey()
71 bool OwnerManager::EnsurePrivateKey() { in EnsurePrivateKey()
81 void OwnerManager::Sign(const BrowserThread::ID thread_id, in Sign()
92 &OwnerManager::CallDelegate, in Sign()
[all …]
Downer_manager_unittest.h77 class MockKeyUser : public OwnerManager::Delegate {
79 explicit MockKeyUser(const OwnerManager::KeyOpCode expected) in MockKeyUser()
83 MockKeyUser(const OwnerManager::KeyOpCode expected, bool quit_on_callback) in MockKeyUser()
90 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code, in OnKeyOpComplete()
97 const OwnerManager::KeyOpCode expected_;
103 class MockKeyUpdateUser : public OwnerManager::KeyUpdateDelegate {
117 class MockSigner : public OwnerManager::Delegate {
119 MockSigner(const OwnerManager::KeyOpCode expected, in MockSigner()
127 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code, in OnKeyOpComplete()
135 const OwnerManager::KeyOpCode expected_code_;
Downership_service.h61 OwnerManager::KeyUpdateDelegate* d);
77 OwnerManager::Delegate* d);
87 OwnerManager::Delegate* d);
123 OwnerManager::KeyUpdateDelegate* d);
128 OwnerManager::Delegate* d);
133 OwnerManager::Delegate* d);
134 static void FailAttempt(OwnerManager::Delegate* d);
136 OwnerManager* manager() { return manager_.get(); }
138 scoped_refptr<OwnerManager> manager_;
Downership_service.cc29 : manager_(new OwnerManager), in OwnershipService()
106 OwnerManager::KeyUpdateDelegate* d) { in StartUpdateOwnerKey()
121 OwnerManager::Delegate* d) { in StartSigningAttempt()
137 OwnerManager::Delegate* d) { in StartVerifyAttempt()
173 OwnerManager::KeyUpdateDelegate* d) { in UpdateOwnerKey()
192 OwnerManager::Delegate* d) { in TrySigningAttempt()
209 OwnerManager::Delegate* d) { in TryVerifyAttempt()
222 void OwnershipService::FailAttempt(OwnerManager::Delegate* d) { in FailAttempt()
223 d->OnKeyOpComplete(OwnerManager::KEY_UNAVAILABLE, std::vector<uint8>()); in FailAttempt()
Downer_manager.h26 class OwnerManager : public base::RefCountedThreadSafe<OwnerManager> {
51 OwnerManager();
52 virtual ~OwnerManager();
115 DISALLOW_COPY_AND_ASSIGN(OwnerManager);
Dsigned_settings_helper_unittest.cc85 static void OnKeyOpComplete(OwnerManager::Delegate* op) { in OnKeyOpComplete()
86 op->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in OnKeyOpComplete()
129 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
137 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
142 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
180 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
188 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
196 EXPECT_CALL(m_, StartSigningAttempt(_, A<OwnerManager::Delegate*>())) in TEST_F()
Dsigned_settings.cc77 OwnerManager::KeyOpCode return_code) { in MapKeyOpCode()
78 return (return_code == OwnerManager::KEY_UNAVAILABLE ? in MapKeyOpCode()
111 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
137 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
170 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
201 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
229 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
255 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
378 const OwnerManager::KeyOpCode return_code, in OnKeyOpComplete()
390 if (return_code == OwnerManager::SUCCESS) { in OnKeyOpComplete()
[all …]
Dmock_ownership_service.h25 OwnerManager::Delegate*));
28 OwnerManager::Delegate*));
Dsigned_settings.h43 public OwnerManager::Delegate {
95 static ReturnCode MapKeyOpCode(OwnerManager::KeyOpCode code);
102 void OnKeyOpComplete(const OwnerManager::KeyOpCode return_code,
Dsigned_settings_unittest.cc192 void FailingStorePropertyOp(const OwnerManager::KeyOpCode return_code) { in FailingStorePropertyOp()
214 void FailingStorePolicyOp(const OwnerManager::KeyOpCode return_code) { in FailingStorePolicyOp()
389 s->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in TEST_F()
406 s->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in TEST_F()
423 s->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in TEST_F()
442 s->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in TEST_F()
470 s->OnKeyOpComplete(OwnerManager::SUCCESS, std::vector<uint8>()); in TEST_F()
482 FailingStorePropertyOp(OwnerManager::KEY_UNAVAILABLE); in TEST_F()
486 FailingStorePropertyOp(OwnerManager::OPERATION_FAILED); in TEST_F()
545 ACTION_P(FinishKeyOp, s) { arg2->OnKeyOpComplete(OwnerManager::SUCCESS, s); } in ACTION_P()
[all …]
Downership_service_unittest.cc153 MockKeyUser delegate(OwnerManager::KEY_UNAVAILABLE); in TEST_F()
169 MockKeyUser delegate(OwnerManager::KEY_UNAVAILABLE); in TEST_F()
193 MockKeyUser delegate(OwnerManager::SUCCESS); in TEST_F()
217 MockKeyUser delegate(OwnerManager::OPERATION_FAILED); in TEST_F()
/external/chromium/chrome/browser/policy/
Ddevice_policy_cache.cc31 public chromeos::OwnerManager::KeyUpdateDelegate {