| Index: chrome/utility/image_writer/image_writer_test_utils.h
|
| diff --git a/chrome/utility/image_writer/image_writer_test_utils.h b/chrome/utility/image_writer/image_writer_test_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d2040ffb4d73928a36b375eacee65c6ec4d508f1
|
| --- /dev/null
|
| +++ b/chrome/utility/image_writer/image_writer_test_utils.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
|
| +#define CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
|
| +
|
| +#include "base/files/file_path.h"
|
| +#include "base/files/scoped_temp_dir.h"
|
| +
|
| +namespace chrome {
|
| +namespace image_writer {
|
| +
|
| +extern const int kTestFileSize;
|
| +extern const char kTestBytePattern;
|
| +
|
| +class TempFilesForTesting {
|
| + public:
|
| + bool SetUp();
|
| +
|
| + base::FilePath ImagePath();
|
| + base::FilePath DevicePath();
|
| +
|
| + bool InitializeImage();
|
| + bool InitializeFile(const base::FilePath& path, int length, char pattern);
|
| +
|
| + bool CompareImageAndDevice();
|
| +
|
| + private:
|
| + base::FilePath image_path_;
|
| + base::FilePath device_path_;
|
| + base::ScopedTempDir temp_dir_;
|
| +};
|
| +
|
| +} // namespace image_writer
|
| +} // namespace chrome
|
| +
|
| +#endif // CHROME_UTILITY_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
|
|
|