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/prefs/pref_member.h" | 5 #include "chrome/browser/prefs/pref_member.h" |
6 #include "chrome/browser/prefs/pref_value_store.h" | 6 #include "chrome/browser/prefs/pref_value_store.h" |
7 #include "chrome/common/notification_details.h" | 7 #include "chrome/common/notification_details.h" |
8 #include "chrome/common/notification_source.h" | 8 #include "chrome/common/notification_source.h" |
9 #include "chrome/common/notification_type.h" | |
danno
2010/12/22 14:00:19
This doesn't seem to be used, did the includes in
Mattias Nissler (ping if slow)
2010/12/22 14:11:04
We pulled this in via pref_value_store.h before. I
| |
9 #include "chrome/test/testing_pref_service.h" | 10 #include "chrome/test/testing_pref_service.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 static const char kBoolPref[] = "bool"; | 15 static const char kBoolPref[] = "bool"; |
15 static const char kIntPref[] = "int"; | 16 static const char kIntPref[] = "int"; |
16 static const char kRealPref[] = "real"; | 17 static const char kRealPref[] = "real"; |
17 static const char kStringPref[] = "string"; | 18 static const char kStringPref[] = "string"; |
18 | 19 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 | 186 |
186 prefs.SetString(kStringPref, "hello"); | 187 prefs.SetString(kStringPref, "hello"); |
187 EXPECT_EQ(2, test_obj.observe_cnt_); | 188 EXPECT_EQ(2, test_obj.observe_cnt_); |
188 EXPECT_EQ("hello", prefs.GetString(kStringPref)); | 189 EXPECT_EQ("hello", prefs.GetString(kStringPref)); |
189 } | 190 } |
190 | 191 |
191 TEST(PrefMemberTest, NoInit) { | 192 TEST(PrefMemberTest, NoInit) { |
192 // Make sure not calling Init on a PrefMember doesn't cause problems. | 193 // Make sure not calling Init on a PrefMember doesn't cause problems. |
193 IntegerPrefMember pref; | 194 IntegerPrefMember pref; |
194 } | 195 } |
OLD | NEW |