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

Unified Diff: chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc

Issue 50093002: Added a timeout for platform verification key generation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed browsertest Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/platform_verification_flow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc
diff --git a/chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc b/chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc
index 3aa70b0af37a24302b3f6d7ac3f8f683c9fc87b1..d722c959fd20b94f1cb7a0ac85628702f3ef1470 100644
--- a/chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc
+++ b/chrome/browser/chromeos/attestation/attestation_policy_browsertest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
@@ -73,9 +74,10 @@ class AttestationDevicePolicyTest
// Synchronously do what the content protection code path does when it wants
// to verify a Chrome OS platform.
PlatformVerificationFlow::Result SyncContentProtectionAttestation() {
- PlatformVerificationFlow verifier(NULL, NULL, &fake_cryptohome_client_,
- NULL, NULL);
- verifier.ChallengePlatformKey(
+ scoped_refptr<PlatformVerificationFlow> verifier(
+ new PlatformVerificationFlow(NULL, NULL, &fake_cryptohome_client_, NULL,
+ NULL));
+ verifier->ChallengePlatformKey(
browser()->tab_strip_model()->GetActiveWebContents(),
"fake_service_id",
"fake_challenge",
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/platform_verification_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698