| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
| 6 #include "base/values.h" | 6 #include "base/values.h" |
| 7 #include "chrome/browser/chrome_thread.h" |
| 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 8 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 8 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/prefs/dummy_pref_store.h" |
| 9 #include "chrome/browser/dummy_pref_store.h" | 10 #include "chrome/browser/prefs/pref_value_store.h" |
| 10 #include "chrome/browser/pref_value_store.h" | |
| 11 #include "chrome/test/testing_pref_service.h" | 11 #include "chrome/test/testing_pref_service.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using testing::_; | 15 using testing::_; |
| 16 using testing::Mock; | 16 using testing::Mock; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class MockPolicyRefreshCallback { | 20 class MockPolicyRefreshCallback { |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 Mock::VerifyAndClearExpectations(&callback1); | 654 Mock::VerifyAndClearExpectations(&callback1); |
| 655 Mock::VerifyAndClearExpectations(&callback2); | 655 Mock::VerifyAndClearExpectations(&callback2); |
| 656 Mock::VerifyAndClearExpectations(&callback3); | 656 Mock::VerifyAndClearExpectations(&callback3); |
| 657 | 657 |
| 658 EXPECT_CALL(callback1, DoCallback(expected_differing_paths_)).Times(1); | 658 EXPECT_CALL(callback1, DoCallback(expected_differing_paths_)).Times(1); |
| 659 std::vector<std::string> no_differing_paths; | 659 std::vector<std::string> no_differing_paths; |
| 660 EXPECT_CALL(callback2, DoCallback(no_differing_paths)).Times(1); | 660 EXPECT_CALL(callback2, DoCallback(no_differing_paths)).Times(1); |
| 661 EXPECT_CALL(callback3, DoCallback(no_differing_paths)).Times(1); | 661 EXPECT_CALL(callback3, DoCallback(no_differing_paths)).Times(1); |
| 662 loop_.RunAllPending(); | 662 loop_.RunAllPending(); |
| 663 } | 663 } |
| OLD | NEW |