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_notifier.h" | 5 #include "chrome/browser/prefs/pref_notifier.h" |
6 #include "chrome/browser/pref_service.h" | 6 #include "chrome/browser/prefs/pref_service.h" |
7 #include "chrome/browser/pref_value_store.h" | 7 #include "chrome/browser/prefs/pref_value_store.h" |
8 #include "chrome/common/notification_observer.h" | 8 #include "chrome/common/notification_observer.h" |
9 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_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 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const char kChangedPref[] = "changed_pref"; | 17 const char kChangedPref[] = "changed_pref"; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 EXPECT_CALL(obs1_, Observe(_, _, _)).Times(0); | 282 EXPECT_CALL(obs1_, Observe(_, _, _)).Times(0); |
283 EXPECT_CALL(obs2_, Observe(_, _, _)).Times(0); | 283 EXPECT_CALL(obs2_, Observe(_, _, _)).Times(0); |
284 notifier_->OnUserPreferenceSet(kUnchangedPref, NULL); | 284 notifier_->OnUserPreferenceSet(kUnchangedPref, NULL); |
285 | 285 |
286 notifier_->RemovePrefObserver(kChangedPref, &obs2_); | 286 notifier_->RemovePrefObserver(kChangedPref, &obs2_); |
287 notifier_->RemovePrefObserver(kUnchangedPref, &obs2_); | 287 notifier_->RemovePrefObserver(kUnchangedPref, &obs2_); |
288 } | 288 } |
289 | 289 |
290 } // namespace | 290 } // namespace |
OLD | NEW |