#include "base/bind.h"
#include "base/command_line.h"
-#include "base/path_service.h"
#include "base/run_loop.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/sync_file_system/file_status_observer.h"
real_minimum_preserved_space_(0),
real_default_quota_(0) {}
- virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
+ void SetUpInProcessBrowserTestFixture() override {
ExtensionApiTest::SetUpInProcessBrowserTestFixture();
real_minimum_preserved_space_ =
storage::QuotaManager::kSyncableStorageDefaultHostQuota = 123456;
}
- virtual void TearDownInProcessBrowserTestFixture() OVERRIDE {
+ void TearDownInProcessBrowserTestFixture() override {
storage::QuotaManager::kMinimumPreserveForSystem =
real_minimum_preserved_space_;
storage::QuotaManager::kSyncableStorageDefaultHostQuota =
ExtensionApiTest::TearDownInProcessBrowserTestFixture();
}
- virtual void SetUpOnMainThread() OVERRIDE {
+ void SetUpOnMainThread() override {
// Must happen after the browser process is created because instantiating
// the factory will instantiate ExtensionSystemFactory which depends on
// ExtensionsBrowserClient setup in BrowserProcessImpl.
mock_remote_service->NotifyRemoteChangeQueueUpdated(1);
}
-ACTION_P5(ReturnWithFakeFileAddedStatus,
+ACTION_P6(ReturnWithFakeFileAddedStatus,
origin,
mock_remote_service,
- sync_direction,
+ file_type,
sync_file_status,
- sync_action_taken) {
+ sync_action_taken,
+ sync_direction) {
FileSystemURL mock_url = sync_file_system::CreateSyncableFileSystemURL(
*origin,
base::FilePath(FILE_PATH_LITERAL("foo.txt")));
sync_file_system::SYNC_STATUS_OK,
mock_url));
mock_remote_service->NotifyFileStatusChanged(
- mock_url, sync_direction, sync_file_status, sync_action_taken);
+ mock_url,
+ file_type,
+ sync_file_status,
+ sync_action_taken,
+ sync_direction);
}
} // namespace
.WillOnce(ReturnWithFakeFileAddedStatus(
&origin,
mock_remote_service(),
+ sync_file_system::SYNC_FILE_TYPE_FILE,
sync_file_system::SYNC_FILE_STATUS_SYNCED,
sync_file_system::SYNC_ACTION_ADDED,
sync_file_system::SYNC_DIRECTION_REMOTE_TO_LOCAL));
.WillOnce(ReturnWithFakeFileAddedStatus(
&origin,
mock_remote_service(),
+ sync_file_system::SYNC_FILE_TYPE_FILE,
sync_file_system::SYNC_FILE_STATUS_SYNCED,
sync_file_system::SYNC_ACTION_DELETED,
sync_file_system::SYNC_DIRECTION_REMOTE_TO_LOCAL));