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

Side by Side Diff: chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc

Issue 567763003: Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/attestation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698