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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698