Index: content/public/test/test_utils.cc |
diff --git a/content/public/test/test_utils.cc b/content/public/test/test_utils.cc |
index 5557dc88f91924894b67baf7ab6ae061c36eb373..056f4188f5154c12831c8e855eabc60e08951595 100644 |
--- a/content/public/test/test_utils.cc |
+++ b/content/public/test/test_utils.cc |
@@ -9,6 +9,7 @@ |
#include "base/run_loop.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
+#include "content/browser/storage_partition_impl.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/test/test_launcher.h" |
@@ -134,6 +135,13 @@ scoped_ptr<base::Value> ExecuteScriptAndGetValue( |
return observer.result().Pass(); |
} |
+net::CookieStore* GetCookieStoreForScheme( |
+ StoragePartition* storage_partition, |
+ const std::string& scheme) { |
+ return static_cast<StoragePartitionImpl*>(storage_partition)-> |
+ GetCookieStoreMap().GetForScheme(scheme); |
+} |
+ |
MessageLoopRunner::MessageLoopRunner() |
: loop_running_(false), |
quit_closure_called_(false) { |