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 <string> | 5 #include <string> |
6 | 6 |
7 #include "app/test/data/resource.h" | 7 #include "app/test/data/resource.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/dummy_pref_store.h" | 10 #include "chrome/browser/prefs/dummy_pref_store.h" |
11 #include "chrome/browser/pref_value_store.h" | 11 #include "chrome/browser/prefs/pref_value_store.h" |
12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
13 #include "chrome/common/notification_observer_mock.h" | 13 #include "chrome/common/notification_observer_mock.h" |
14 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
15 #include "chrome/common/notification_type.h" | 15 #include "chrome/common/notification_type.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "chrome/test/testing_pref_service.h" | 17 #include "chrome/test/testing_pref_service.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using testing::_; | 21 using testing::_; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 Mock::VerifyAndClearExpectations(&observer_); | 280 Mock::VerifyAndClearExpectations(&observer_); |
281 | 281 |
282 SetExpectPrefChanged(); | 282 SetExpectPrefChanged(); |
283 prefs_.Set(name_, *null_value_); | 283 prefs_.Set(name_, *null_value_); |
284 Mock::VerifyAndClearExpectations(&observer_); | 284 Mock::VerifyAndClearExpectations(&observer_); |
285 list = prefs_.GetMutableList(name_); | 285 list = prefs_.GetMutableList(name_); |
286 EXPECT_EQ(0U, list->GetSize()); | 286 EXPECT_EQ(0U, list->GetSize()); |
287 | 287 |
288 prefs_.RemovePrefObserver(name_, &observer_); | 288 prefs_.RemovePrefObserver(name_, &observer_); |
289 } | 289 } |
OLD | NEW |