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

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

Issue 25112004: Move statistics_provider to chromeos/system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 years, 2 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 | Annotate | Revision Log
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/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/testing_pref_service.h" 10 #include "base/prefs/testing_pref_service.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h" 12 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h"
13 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" 13 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h"
14 #include "chrome/browser/chromeos/login/mock_user_manager.h" 14 #include "chrome/browser/chromeos/login/mock_user_manager.h"
15 #include "chrome/browser/chromeos/settings/cros_settings.h" 15 #include "chrome/browser/chromeos/settings/cros_settings.h"
16 #include "chrome/browser/chromeos/settings/cros_settings_names.h" 16 #include "chrome/browser/chromeos/settings/cros_settings_names.h"
17 #include "chrome/browser/chromeos/settings/device_settings_service.h" 17 #include "chrome/browser/chromeos/settings/device_settings_service.h"
18 #include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h" 18 #include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h"
19 #include "chrome/browser/chromeos/system/mock_statistics_provider.h"
20 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
21 #include "chromeos/attestation/mock_attestation_flow.h" 20 #include "chromeos/attestation/mock_attestation_flow.h"
22 #include "chromeos/cryptohome/mock_async_method_caller.h" 21 #include "chromeos/cryptohome/mock_async_method_caller.h"
23 #include "chromeos/dbus/fake_cryptohome_client.h" 22 #include "chromeos/dbus/fake_cryptohome_client.h"
23 #include "chromeos/system/mock_statistics_provider.h"
24 #include "content/public/test/test_browser_thread.h" 24 #include "content/public/test/test_browser_thread.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 using testing::_; 27 using testing::_;
28 using testing::DoAll; 28 using testing::DoAll;
29 using testing::Invoke; 29 using testing::Invoke;
30 using testing::Return; 30 using testing::Return;
31 using testing::SetArgumentPointee; 31 using testing::SetArgumentPointee;
32 using testing::StrictMock; 32 using testing::StrictMock;
33 using testing::WithArgs; 33 using testing::WithArgs;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 TEST_F(PlatformVerificationFlowTest, FastCheckDBusFailure) { 447 TEST_F(PlatformVerificationFlowTest, FastCheckDBusFailure) {
448 fake_cryptohome_client_.set_call_status(DBUS_METHOD_CALL_FAILURE); 448 fake_cryptohome_client_.set_call_status(DBUS_METHOD_CALL_FAILURE);
449 verifier_->CheckPlatformState(check_state_callback_); 449 verifier_->CheckPlatformState(check_state_callback_);
450 base::RunLoop().RunUntilIdle(); 450 base::RunLoop().RunUntilIdle();
451 EXPECT_FALSE(check_state_result_); 451 EXPECT_FALSE(check_state_result_);
452 } 452 }
453 453
454 } // namespace attestation 454 } // namespace attestation
455 } // namespace chromeos 455 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698