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" |
11 #include "chrome/browser/chromeos/attestation/fake_certificate.h" | 11 #include "chrome/browser/chromeos/attestation/fake_certificate.h" |
12 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" | 12 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" |
13 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
14 #include "chrome/browser/chromeos/settings/cros_settings.h" | 14 #include "chrome/browser/chromeos/settings/cros_settings.h" |
15 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 15 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
16 #include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h" | 16 #include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h" |
17 #include "chrome/browser/content_settings/host_content_settings_map.h" | 17 #include "chrome/browser/content_settings/host_content_settings_map.h" |
18 #include "chrome/browser/profiles/profile_impl.h" | 18 #include "chrome/browser/profiles/profile_impl.h" |
19 #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h" | 19 #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h" |
20 #include "chrome/common/content_settings_pattern.h" | |
21 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
22 #include "chrome/test/base/testing_pref_service_syncable.h" | 21 #include "chrome/test/base/testing_pref_service_syncable.h" |
23 #include "chromeos/attestation/mock_attestation_flow.h" | 22 #include "chromeos/attestation/mock_attestation_flow.h" |
24 #include "chromeos/cryptohome/mock_async_method_caller.h" | 23 #include "chromeos/cryptohome/mock_async_method_caller.h" |
25 #include "chromeos/dbus/fake_cryptohome_client.h" | 24 #include "chromeos/dbus/fake_cryptohome_client.h" |
26 #include "chromeos/settings/cros_settings_names.h" | 25 #include "chromeos/settings/cros_settings_names.h" |
| 26 #include "components/content_settings/core/common/content_settings_pattern.h" |
27 #include "content/public/test/test_browser_thread.h" | 27 #include "content/public/test/test_browser_thread.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 using testing::_; | 30 using testing::_; |
31 using testing::DoAll; | 31 using testing::DoAll; |
32 using testing::Invoke; | 32 using testing::Invoke; |
33 using testing::Return; | 33 using testing::Return; |
34 using testing::SetArgumentPointee; | 34 using testing::SetArgumentPointee; |
35 using testing::StrictMock; | 35 using testing::StrictMock; |
36 using testing::WithArgs; | 36 using testing::WithArgs; |
(...skipping 435 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 |