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

Side by Side Diff: chrome/browser/pref_value_store_unittest.cc

Issue 2819063: Cleanup: Remove unneeded headers from app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: forward declare Created 10 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
« no previous file with comments | « chrome/browser/possible_url_model.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/test/data/resource.h"
6 #include "base/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
7 #include "base/values.h" 6 #include "base/values.h"
8 #include "chrome/browser/dummy_pref_store.h" 7 #include "chrome/browser/dummy_pref_store.h"
9 #include "chrome/browser/pref_value_store.h" 8 #include "chrome/browser/pref_value_store.h"
10 9
11 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 using testing::_; 13 using testing::_;
15 using testing::Mock; 14 using testing::Mock;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore( 420 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore(
422 prefs::kRecommendedPref)); 421 prefs::kRecommendedPref));
423 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore( 422 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore(
424 prefs::kRecommendedPref)); 423 prefs::kRecommendedPref));
425 424
426 // Test a preference for which the PrefValueStore does not contain a value. 425 // Test a preference for which the PrefValueStore does not contain a value.
427 ASSERT_FALSE(pref_value_store_->HasPrefPath(prefs::kMissingPref)); 426 ASSERT_FALSE(pref_value_store_->HasPrefPath(prefs::kMissingPref));
428 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore(prefs::kMissingPref)); 427 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore(prefs::kMissingPref));
429 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore(prefs::kMissingPref)); 428 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore(prefs::kMissingPref));
430 } 429 }
OLDNEW
« no previous file with comments | « chrome/browser/possible_url_model.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698