Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: chrome/browser/image_writer/image_writer_test_utils.h

Issue 61643015: Adds imageWriterPrivate support for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorganization and test updates. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
6 #define CHROME_BROWSER_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
7
8 #include "base/files/file_path.h"
9 #include "base/files/scoped_temp_dir.h"
10
11 namespace image_writer {
12
13 extern const int kTestFileSize;
14 extern const char kTestBytePattern;
15
16 class TempFilesForTesting {
17 public:
18 bool SetUp();
19
20 base::FilePath ImagePath();
21 base::FilePath DevicePath();
22
23 bool InitializeImage();
24 bool InitializeFile(const base::FilePath& path, int length, char pattern);
25
26 bool CompareImageAndDevice();
27
28 private:
29 base::FilePath image_path_;
30 base::FilePath device_path_;
31 base::ScopedTempDir temp_dir_;
32 };
33
34 } // namespace image_writer
35
36 #endif // CHROME_BROWSER_IMAGE_WRITER_IMAGE_WRITER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698