#include "mojo/services/network/network_context.h"
#include "base/base_paths.h"
-#include "base/path_service.h"
#include "net/proxy/proxy_service.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
net::URLRequestContextBuilder::HttpCacheParams cache_params;
cache_params.path = base_path.Append(FILE_PATH_LITERAL("Cache"));
- cache_params.type = net::URLRequestContextBuilder::HttpCacheParams::DISK;
+ // TODO(esprehn): For now store the cache in memory so we can run many shells
+ // in parallel when running tests, otherwise the network services in each
+ // shell will corrupt the disk cache.
+ cache_params.type = net::URLRequestContextBuilder::HttpCacheParams::IN_MEMORY;
builder.EnableHttpCache(cache_params);
builder.set_file_enabled(true);