| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |