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

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifest_test.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/extensions/manifest_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/extension_l10n_util.h" 14 #include "chrome/common/extensions/extension_l10n_util.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 using extensions::Extension;
18
17 ExtensionManifestTest::ExtensionManifestTest() : enable_apps_(true) {} 19 ExtensionManifestTest::ExtensionManifestTest() : enable_apps_(true) {}
18 20
19 // static 21 // static
20 DictionaryValue* ExtensionManifestTest::LoadManifestFile( 22 DictionaryValue* ExtensionManifestTest::LoadManifestFile(
21 const std::string& filename, 23 const std::string& filename,
22 std::string* error) { 24 std::string* error) {
23 FilePath filename_path(FilePath::FromUTF8Unsafe(filename)); 25 FilePath filename_path(FilePath::FromUTF8Unsafe(filename));
24 FilePath extension_path; 26 FilePath extension_path;
25 FilePath manifest_path; 27 FilePath manifest_path;
26 28
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 break; 203 break;
202 case EXPECT_TYPE_SUCCESS: 204 case EXPECT_TYPE_SUCCESS:
203 for (size_t i = 0; i < num_testcases; ++i) { 205 for (size_t i = 0; i < num_testcases; ++i) {
204 LoadAndExpectSuccess(testcases[i].manifest_filename_.c_str(), 206 LoadAndExpectSuccess(testcases[i].manifest_filename_.c_str(),
205 testcases[i].location_, 207 testcases[i].location_,
206 testcases[i].flags_); 208 testcases[i].flags_);
207 } 209 }
208 break; 210 break;
209 } 211 }
210 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698