#include <memory>
#include <string>
#include "base/files/file_util.h"
#include "base/task/thread_pool.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/icon_transcoder/svg_icon_transcoder.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_test.h"
constexpr char kSvgData[] = …;
constexpr char kInvalidSvgData[] = …;
constexpr char kGarbageData[] = …;
constexpr gfx::Size kSize(48, 48);
class SvgIconTranscoderTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromDataSuccessNoSave) { … }
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromDataSuccessAndSave) { … }
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromInvalid) { … }
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromGarbage) { … }
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromFileSuccessNoSave) { … }
IN_PROC_BROWSER_TEST_F(SvgIconTranscoderTest, TranscodeFromFileSuccessAndSave) { … }