// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/browsing_data/mock_browsing_data_file_system_helper.h"
+
#include "base/callback.h"
#include "base/logging.h"
-#include "chrome/browser/browsing_data/mock_browsing_data_file_system_helper.h"
+#include "testing/gtest/include/gtest/gtest.h"
MockBrowsingDataFileSystemHelper::MockBrowsingDataFileSystemHelper(
Profile* profile) {
void MockBrowsingDataFileSystemHelper::StartFetching(
const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) {
+ ASSERT_FALSE(callback.is_null());
+ ASSERT_TRUE(callback_.is_null());
callback_ = callback;
}
void MockBrowsingDataFileSystemHelper::DeleteFileSystemOrigin(
const GURL& origin) {
+ ASSERT_FALSE(callback_.is_null());
std::string key = origin.spec();
- CHECK(file_systems_.find(key) != file_systems_.end());
+ ASSERT_TRUE(file_systems_.find(key) != file_systems_.end());
last_deleted_origin_ = origin;
file_systems_[key] = false;
}
}
void MockBrowsingDataFileSystemHelper::Notify() {
- CHECK_EQ(false, callback_.is_null());
callback_.Run(response_);
}