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

Side by Side Diff: chrome/browser/chromeos/preferences_chromeos_browsertest.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <sys/types.h> 6 #include <sys/types.h>
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 &value_a)); 307 &value_a));
308 EXPECT_EQ(kInitialValue, value_a); 308 EXPECT_EQ(kInitialValue, value_a);
309 309
310 int value_b = 0; 310 int value_b = 0;
311 ASSERT_TRUE(GetIntegerPrefValue(pref_store_b.get(), prefs::kMouseSensitivity, 311 ASSERT_TRUE(GetIntegerPrefValue(pref_store_b.get(), prefs::kMouseSensitivity,
312 &value_b)); 312 &value_b));
313 EXPECT_EQ(kInitialValue, value_b); 313 EXPECT_EQ(kInitialValue, value_b);
314 314
315 const int kTestValue = 42; 315 const int kTestValue = 42;
316 pref_store_a->SetValue(prefs::kMouseSensitivity, 316 pref_store_a->SetValue(prefs::kMouseSensitivity,
317 base::MakeUnique<base::FundamentalValue>(kTestValue), 317 base::MakeUnique<base::Value>(kTestValue),
318 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 318 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
319 WaitForPrefChange(pref_store_b.get(), prefs::kMouseSensitivity); 319 WaitForPrefChange(pref_store_b.get(), prefs::kMouseSensitivity);
320 ASSERT_TRUE(GetIntegerPrefValue(pref_store_b.get(), prefs::kMouseSensitivity, 320 ASSERT_TRUE(GetIntegerPrefValue(pref_store_b.get(), prefs::kMouseSensitivity,
321 &value_b)); 321 &value_b));
322 EXPECT_EQ(kTestValue, value_b); 322 EXPECT_EQ(kTestValue, value_b);
323 } 323 }
324 324
325 } // namespace chromeos 325 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698