diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 21:03:23 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 21:03:23 +0000 |
commit | a9b00acc0c03fff42673e3eb0d953768640a5fb1 (patch) | |
tree | 06b8d431e7760a10fcab5ee2a2493b8b22118fca /chrome/browser/extensions/extension_browsertest.cc | |
parent | 6501bc016d78c6d419b89bf991314148e6e4494b (diff) | |
download | chromium_src-a9b00acc0c03fff42673e3eb0d953768640a5fb1.zip chromium_src-a9b00acc0c03fff42673e3eb0d953768640a5fb1.tar.gz chromium_src-a9b00acc0c03fff42673e3eb0d953768640a5fb1.tar.bz2 |
Refactored ExtensionsPrefs to store paths relative to the extensions install directory. Fix & reenabled two extensions_service unit_tests.
R=erikkay
BUG=14714
Review URL: http://codereview.chromium.org/140018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_browsertest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_browsertest.cc | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc index 3df4183..3680fdf 100644 --- a/chrome/browser/extensions/extension_browsertest.cc +++ b/chrome/browser/extensions/extension_browsertest.cc @@ -27,8 +27,8 @@ namespace { const int kAlertTimeoutMs = 20000; // The extensions we're using as our test case. -const char* kGoodExtension1Id = "00123456789abcdef0123456789abcdef0123456"; -const char* kGoodCrxId = "00123456789abcdef0123456789abcdef0123456"; +const char* kGoodExtension1Id = "behllobkkfkfnphdnhnkndlbkcpglgmj"; +const char* kGoodCrxId = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; }; // namespace @@ -80,9 +80,6 @@ class ExtensionViewTest : public InProcessBrowserTest { // with the wrong MessageLoop. ExtensionErrorReporter::Init(false); - // Use single-process in an attempt to speed it up and make it less flaky. - //EnableSingleProcess(); - InProcessBrowserTest::SetUp(); } virtual void SetUpCommandLine(CommandLine* command_line) { @@ -97,8 +94,11 @@ IN_PROC_BROWSER_TEST_F(ExtensionViewTest, DISABLED_Toolstrip) { // Get the path to our extension. FilePath path; ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &path)); - path = path.AppendASCII("extensions"). - AppendASCII("good").AppendASCII("extension1").AppendASCII("1"); + path = path.AppendASCII("extensions") + .AppendASCII("good") + .AppendASCII("Extensions") + .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") + .AppendASCII("1.0.0.0"); ASSERT_TRUE(file_util::DirectoryExists(path)); // sanity check // Wait for the extension to load and grab a pointer to it. @@ -128,8 +128,11 @@ IN_PROC_BROWSER_TEST_F(ExtensionViewTest, DISABLED_Shelf) { // Get the path to our extension. FilePath path; ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &path)); - path = path.AppendASCII("extensions"). - AppendASCII("good").AppendASCII("extension1").AppendASCII("1"); + path = path.AppendASCII("extensions") + .AppendASCII("good") + .AppendASCII("Extensions") + .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") + .AppendASCII("1.0.0.0"); ASSERT_TRUE(file_util::DirectoryExists(path)); // sanity check // Wait for the extension to load and grab a pointer to it. |