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

Side by Side Diff: components/flags_ui/flags_state_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « components/flags_ui/DEPS ('k') | components/flags_ui/pref_service_flags_storage.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/flags_ui/flags_state.h" 5 #include "components/flags_ui/flags_state.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/feature_list.h" 14 #include "base/feature_list.h"
15 #include "base/format_macros.h" 15 #include "base/format_macros.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/prefs/pref_registry_simple.h"
18 #include "base/prefs/testing_pref_service.h"
17 #include "base/stl_util.h" 19 #include "base/stl_util.h"
18 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
20 #include "base/values.h" 22 #include "base/values.h"
21 #include "build/build_config.h" 23 #include "build/build_config.h"
22 #include "components/flags_ui/feature_entry.h" 24 #include "components/flags_ui/feature_entry.h"
23 #include "components/flags_ui/flags_ui_pref_names.h" 25 #include "components/flags_ui/flags_ui_pref_names.h"
24 #include "components/flags_ui/flags_ui_switches.h" 26 #include "components/flags_ui/flags_ui_switches.h"
25 #include "components/flags_ui/pref_service_flags_storage.h" 27 #include "components/flags_ui/pref_service_flags_storage.h"
26 #include "components/prefs/pref_registry_simple.h"
27 #include "components/prefs/testing_pref_service.h"
28 #include "grit/components_strings.h" 28 #include "grit/components_strings.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace flags_ui { 31 namespace flags_ui {
32 32
33 namespace { 33 namespace {
34 34
35 const char kFlags1[] = "flag1"; 35 const char kFlags1[] = "flag1";
36 const char kFlags2[] = "flag2"; 36 const char kFlags2[] = "flag2";
37 const char kFlags3[] = "flag3"; 37 const char kFlags3[] = "flag3";
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 &supported_entries, &unsupported_entries, 690 &supported_entries, &unsupported_entries,
691 base::Bind(&SkipFeatureEntry)); 691 base::Bind(&SkipFeatureEntry));
692 // All |kEntries| except for |kFlags3| should be supported. 692 // All |kEntries| except for |kFlags3| should be supported.
693 EXPECT_EQ(6u, supported_entries.GetSize()); 693 EXPECT_EQ(6u, supported_entries.GetSize());
694 EXPECT_EQ(1u, unsupported_entries.GetSize()); 694 EXPECT_EQ(1u, unsupported_entries.GetSize());
695 EXPECT_EQ(arraysize(kEntries), 695 EXPECT_EQ(arraysize(kEntries),
696 supported_entries.GetSize() + unsupported_entries.GetSize()); 696 supported_entries.GetSize() + unsupported_entries.GetSize());
697 } 697 }
698 698
699 } // namespace flags_ui 699 } // namespace flags_ui
OLDNEW
« no previous file with comments | « components/flags_ui/DEPS ('k') | components/flags_ui/pref_service_flags_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698