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

Side by Side Diff: chrome/browser/extensions/extension_ui_unittest.cc

Issue 9465030: Break two classes defined in json_value_serializer.cc, .h into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 "base/json/json_value_serializer.h" 5 #include "base/json/json_file_value_serializer.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" 8 #include "chrome/browser/ui/webui/options/extension_settings_handler.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace { 13 namespace {
14 static DictionaryValue* DeserializeJSONTestData(const FilePath& path, 14 static DictionaryValue* DeserializeJSONTestData(const FilePath& path,
15 std::string *error) { 15 std::string *error) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 scoped_ptr<DictionaryValue> extension_details( 223 scoped_ptr<DictionaryValue> extension_details(
224 CreateExtensionDetailViewFromPath( 224 CreateExtensionDetailViewFromPath(
225 extension_path, pages, Extension::LOAD)); 225 extension_path, pages, Extension::LOAD));
226 226
227 FilePath::StringType ui_path; 227 FilePath::StringType ui_path;
228 228
229 EXPECT_TRUE(extension_details->GetString("path", &ui_path)); 229 EXPECT_TRUE(extension_details->GetString("path", &ui_path));
230 EXPECT_EQ(extension_path, FilePath(ui_path)); 230 EXPECT_EQ(extension_path, FilePath(ui_path));
231 } 231 }
232 232
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/external_pref_extension_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698