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

Side by Side Diff: chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 5 #include <string>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/mock_pref_change_callback.h" 9 #include "base/prefs/mock_pref_change_callback.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/extensions/api/preference/preference_api.h" 11 #include "chrome/browser/extensions/api/preference/preference_api.h"
12 #include "chrome/browser/extensions/extension_prefs.h" 12 #include "chrome/browser/extensions/extension_prefs.h"
13 #include "chrome/browser/extensions/extension_prefs_unittest.h" 13 #include "chrome/browser/extensions/extension_prefs_unittest.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/extensions/extension_manifest_constants.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/user_prefs/pref_registry_syncable.h" 16 #include "components/user_prefs/pref_registry_syncable.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 using base::Value; 19 using base::Value;
21 20
22 namespace keys = extension_manifest_keys;
23
24 namespace extensions { 21 namespace extensions {
25 22
26 namespace { 23 namespace {
27 24
28 const char kPref1[] = "path1.subpath"; 25 const char kPref1[] = "path1.subpath";
29 const char kPref2[] = "path2"; 26 const char kPref2[] = "path2";
30 const char kPref3[] = "path3"; 27 const char kPref3[] = "path3";
31 const char kPref4[] = "path4"; 28 const char kPref4[] = "path4";
32 29
33 // Default values in case an extension pref value is not overridden. 30 // Default values in case an extension pref value is not overridden.
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 EXPECT_EQ(kDefaultPref1, actual); 458 EXPECT_EQ(kDefaultPref1, actual);
462 } 459 }
463 } 460 }
464 461
465 private: 462 private:
466 int iteration_; 463 int iteration_;
467 }; 464 };
468 TEST_F(ControlledPrefsDisableExtensions, ControlledPrefsDisableExtensions) { } 465 TEST_F(ControlledPrefsDisableExtensions, ControlledPrefsDisableExtensions) { }
469 466
470 } // namespace extensions 467 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/messaging/message_service.cc ('k') | chrome/browser/extensions/api/spellcheck/spellcheck_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698