| 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 "chrome/browser/pref_set_observer.h" | 5 #include "chrome/browser/prefs/pref_set_observer.h" |
| 6 #include "chrome/common/notification_details.h" | 6 #include "chrome/common/notification_details.h" |
| 7 #include "chrome/common/notification_observer_mock.h" | 7 #include "chrome/common/notification_observer_mock.h" |
| 8 #include "chrome/common/notification_source.h" | 8 #include "chrome/common/notification_source.h" |
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "chrome/test/testing_pref_service.h" | 10 #include "chrome/test/testing_pref_service.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 // Unit tests for PrefSetObserver. | 14 // Unit tests for PrefSetObserver. |
| 15 class PrefSetObserverTest : public testing::Test { | 15 class PrefSetObserverTest : public testing::Test { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 PrefNameDetails(prefs::kHomePageIsNewTabPage))); | 80 PrefNameDetails(prefs::kHomePageIsNewTabPage))); |
| 81 pref_service_->SetUserPref(prefs::kHomePageIsNewTabPage, | 81 pref_service_->SetUserPref(prefs::kHomePageIsNewTabPage, |
| 82 Value::CreateBooleanValue(true)); | 82 Value::CreateBooleanValue(true)); |
| 83 Mock::VerifyAndClearExpectations(&observer); | 83 Mock::VerifyAndClearExpectations(&observer); |
| 84 | 84 |
| 85 EXPECT_CALL(observer, Observe(_, _, _)).Times(0); | 85 EXPECT_CALL(observer, Observe(_, _, _)).Times(0); |
| 86 pref_service_->SetUserPref(prefs::kApplicationLocale, | 86 pref_service_->SetUserPref(prefs::kApplicationLocale, |
| 87 Value::CreateStringValue("en_US.utf8")); | 87 Value::CreateStringValue("en_US.utf8")); |
| 88 Mock::VerifyAndClearExpectations(&observer); | 88 Mock::VerifyAndClearExpectations(&observer); |
| 89 } | 89 } |
| OLD | NEW |