| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/ui/panels/base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy()); | 323 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy()); |
| 324 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0"); | 324 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0"); |
| 325 input_value->SetString(extension_manifest_keys::kName, "Sample Extension"); | 325 input_value->SetString(extension_manifest_keys::kName, "Sample Extension"); |
| 326 | 326 |
| 327 std::string error; | 327 std::string error; |
| 328 scoped_refptr<Extension> extension = Extension::Create( | 328 scoped_refptr<Extension> extension = Extension::Create( |
| 329 full_path, location, *input_value, | 329 full_path, location, *input_value, |
| 330 Extension::STRICT_ERROR_CHECKS, &error); | 330 Extension::STRICT_ERROR_CHECKS, &error); |
| 331 EXPECT_TRUE(extension.get()); | 331 EXPECT_TRUE(extension.get()); |
| 332 EXPECT_STREQ("", error.c_str()); | 332 EXPECT_STREQ("", error.c_str()); |
| 333 browser()->GetProfile()->GetExtensionService()->OnLoadSingleExtension( | 333 browser()->GetProfile()->GetExtensionService()-> |
| 334 extension.get(), false); | 334 OnExtensionInstalled(extension.get(), false, -1); |
| 335 return extension; | 335 return extension; |
| 336 } | 336 } |
| OLD | NEW |