// Copyright (c) 2013 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "test/test_file_util.h"#include "test/test_timeouts.h"#include "base/threading/platform_thread.h"namespacebase{boolEvictFileFromSystemCacheWithRetry(constFilePath&path){constintkCycles=10;constTimeDeltakDelay=TestTimeouts::action_timeout()/kCycles;for(inti=0;i<kCycles;i++){if(EvictFileFromSystemCache(path))returntrue;PlatformThread::Sleep(kDelay);}returnfalse;}}// namespace base