Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/prefs/pref_member_unittest.cc

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/prefs/pref_value_store.h" 8 #include "chrome/browser/prefs/pref_value_store.h"
9 #include "chrome/common/chrome_notification_types.h" 9 #include "chrome/common/chrome_notification_types.h"
10 #include "chrome/test/testing_pref_service.h" 10 #include "chrome/test/base/testing_pref_service.h"
11 #include "content/browser/browser_thread.h" 11 #include "content/browser/browser_thread.h"
12 #include "content/common/notification_details.h" 12 #include "content/common/notification_details.h"
13 #include "content/common/notification_source.h" 13 #include "content/common/notification_source.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 namespace { 15 namespace {
16 16
17 const char kBoolPref[] = "bool"; 17 const char kBoolPref[] = "bool";
18 const char kIntPref[] = "int"; 18 const char kIntPref[] = "int";
19 const char kDoublePref[] = "double"; 19 const char kDoublePref[] = "double";
20 const char kStringPref[] = "string"; 20 const char kStringPref[] = "string";
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 callback->Init(kBoolPref, &prefs); 247 callback->Init(kBoolPref, &prefs);
248 248
249 ASSERT_TRUE(callback->FetchValue()); 249 ASSERT_TRUE(callback->FetchValue());
250 EXPECT_FALSE(callback->value()); 250 EXPECT_FALSE(callback->value());
251 251
252 prefs.SetBoolean(kBoolPref, true); 252 prefs.SetBoolean(kBoolPref, true);
253 253
254 ASSERT_TRUE(callback->FetchValue()); 254 ASSERT_TRUE(callback->FetchValue());
255 EXPECT_TRUE(callback->value()); 255 EXPECT_TRUE(callback->value());
256 } 256 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_change_registrar_unittest.cc ('k') | chrome/browser/prefs/pref_notifier_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698