const std::string& id,
const base::FilePath& extension_path,
bool file_ownership_passed,
- const GURL& download_url,
CrxInstaller** out_crx_installer) OVERRIDE {
extension_id_ = id;
install_path_ = extension_path;
- download_url_ = download_url;
if (ContainsKey(fake_crx_installers_, id)) {
*out_crx_installer = fake_crx_installers_[id];
const std::string& extension_id() const { return extension_id_; }
const base::FilePath& install_path() const { return install_path_; }
- const GURL& download_url() const { return download_url_; }
private:
// Hold the set of ids that UpdateExtension() should fake success on.
EXPECT_EQ(id, service->extension_id());
base::FilePath tmpfile_path = service->install_path();
EXPECT_FALSE(tmpfile_path.empty());
- EXPECT_EQ(test_url, service->download_url());
EXPECT_EQ(extension_file_path, tmpfile_path);
}
}
EXPECT_EQ(id, service->extension_id());
base::FilePath tmpfile_path = service->install_path();
EXPECT_FALSE(tmpfile_path.empty());
- EXPECT_EQ(test_url, service->download_url());
EXPECT_EQ(extension_file_path, tmpfile_path);
}
}
base::FilePath tmpfile_path = service.install_path();
EXPECT_FALSE(tmpfile_path.empty());
EXPECT_EQ(id1, service.extension_id());
- EXPECT_EQ(url1, service.download_url());
RunUntilIdle();
// Make sure the second fetch finished and asked the service to do an
// The second install should not have run, because the first has not
// sent a notification that it finished.
EXPECT_EQ(id1, service.extension_id());
- EXPECT_EQ(url1, service.download_url());
// Fake install notice. This should start the second installation,
// which will be checked below.
}
EXPECT_EQ(id2, service.extension_id());
- EXPECT_EQ(url2, service.download_url());
EXPECT_FALSE(service.install_path().empty());
// Make sure the correct crx contents were passed for the update call.
TestDetermineUpdatesPending();
}
-TEST_F(ExtensionUpdaterTest, TestMultipleManifestDownloading) {
+#if defined(THREAD_SANITIZER) || defined(MEMORY_SANITIZER)
+// This test fails under ThreadSanitizer and MemorySanitizer, which build with
+// libc++ instead of libstdc++.
+#define MAYBE_TestMultipleManifestDownloading \
+ DISABLED_TestMultipleManifestDownloading
+#else
+#define MAYBE_TestMultipleManifestDownloading TestMultipleManifestDownloading
+#endif
+TEST_F(ExtensionUpdaterTest, MAYBE_TestMultipleManifestDownloading) {
TestMultipleManifestDownloading();
}