#include "content/browser/background_fetch/storage/image_helpers.h"
#include <memory>
#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace content {
namespace background_fetch {
namespace {
void DidSerializeIcon(base::OnceClosure quit_closure,
std::string* out_icon,
std::string icon) { … }
void DidDeserializeIcon(base::OnceClosure quit_closure,
SkBitmap* out_icon,
SkBitmap icon) { … }
TEST(BackgroundFetchImageHelpers, ShouldPersistIcon) { … }
TEST(BackgroundFetchImageHelpers, SerializeRoundTrip) { … }
}
}
}