| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h" | 10 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 return url_; | 89 return url_; |
| 90 } | 90 } |
| 91 | 91 |
| 92 virtual user_manager::User* GetUser( | 92 virtual user_manager::User* GetUser( |
| 93 content::WebContents* web_contents) OVERRIDE { | 93 content::WebContents* web_contents) OVERRIDE { |
| 94 return mock_user_manager_.GetActiveUser(); | 94 return mock_user_manager_.GetActiveUser(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 virtual HostContentSettingsMap* GetContentSettings( | 97 virtual HostContentSettingsMap* GetContentSettings( |
| 98 content::WebContents* web_contents) OVERRIDE { | 98 content::WebContents* web_contents) OVERRIDE { |
| 99 return content_settings_; | 99 return content_settings_.get(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 virtual bool IsGuestOrIncognito(content::WebContents* web_contents) OVERRIDE { | 102 virtual bool IsGuestOrIncognito(content::WebContents* web_contents) OVERRIDE { |
| 103 return is_incognito_; | 103 return is_incognito_; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void set_response(PlatformVerificationFlow::ConsentResponse response) { | 106 void set_response(PlatformVerificationFlow::ConsentResponse response) { |
| 107 response_ = response; | 107 response_ = response; |
| 108 } | 108 } |
| 109 | 109 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 472 |
| 473 TEST_F(PlatformVerificationFlowTest, IncognitoMode) { | 473 TEST_F(PlatformVerificationFlowTest, IncognitoMode) { |
| 474 fake_delegate_.set_is_incognito(true); | 474 fake_delegate_.set_is_incognito(true); |
| 475 verifier_->ChallengePlatformKey(NULL, kTestID, kTestChallenge, callback_); | 475 verifier_->ChallengePlatformKey(NULL, kTestID, kTestChallenge, callback_); |
| 476 base::RunLoop().RunUntilIdle(); | 476 base::RunLoop().RunUntilIdle(); |
| 477 EXPECT_EQ(PlatformVerificationFlow::PLATFORM_NOT_VERIFIED, result_); | 477 EXPECT_EQ(PlatformVerificationFlow::PLATFORM_NOT_VERIFIED, result_); |
| 478 } | 478 } |
| 479 | 479 |
| 480 } // namespace attestation | 480 } // namespace attestation |
| 481 } // namespace chromeos | 481 } // namespace chromeos |
| OLD | NEW |