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

Unified Diff: chrome/test/ppapi/ppapi_filechooser_browsertest.cc

Issue 2029903002: Add token field to ClientSafeBrowsingReportReqeust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/ppapi/ppapi_filechooser_browsertest.cc
diff --git a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
index 90816e996ad020f19ba9406d856d5c190fee6f25..11381ad45dfa11aa01f714064d47003edbe86b1c 100644
--- a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
+++ b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/strings/string_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/ppapi/ppapi_test.h"
@@ -164,11 +165,11 @@ class FakeDownloadProtectionService : public DownloadProtectionService {
const GURL& requestor_url,
const base::FilePath& default_file_path,
const std::vector<base::FilePath::StringType>& alternate_extensions,
- const CheckDownloadCallback& callback) override {
+ const CheckDownloadContentCallback& callback) override {
const auto iter =
test_configuration_->result_map.find(default_file_path.Extension());
if (iter != test_configuration_->result_map.end()) {
- callback.Run(iter->second);
+ callback.Run(iter->second, base::EmptyString());
return;
}
@@ -176,12 +177,12 @@ class FakeDownloadProtectionService : public DownloadProtectionService {
EXPECT_EQ(base::FilePath::kExtensionSeparator, extension[0]);
const auto iter = test_configuration_->result_map.find(extension);
if (iter != test_configuration_->result_map.end()) {
- callback.Run(iter->second);
+ callback.Run(iter->second, base::EmptyString());
return;
}
}
- callback.Run(test_configuration_->default_result);
+ callback.Run(test_configuration_->default_result, base::EmptyString());
}
private:

Powered by Google App Engine
This is Rietveld 408576698