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

Unified Diff: trunk/src/chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc

Issue 384513002: Revert 282130 "Adds API test for imageWriterPrivate.writeFromFile" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc (revision 282139)
+++ trunk/src/chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc (working copy)
@@ -58,7 +58,8 @@
namespace {
-class ImageWriterOperationManagerTest : public ImageWriterUnitTestBase {
+class ImageWriterOperationManagerTest
+ : public ImageWriterUnitTestBase {
public:
void StartCallback(bool success, const std::string& error) {
started_ = true;
@@ -110,11 +111,11 @@
OperationManager manager(&test_profile_);
manager.StartWriteFromFile(
- kDummyExtensionId,
- test_utils_.GetImagePath(),
- test_utils_.GetDevicePath().AsUTF8Unsafe(),
- base::Bind(&ImageWriterOperationManagerTest::StartCallback,
- base::Unretained(this)));
+ kDummyExtensionId,
+ test_image_path_,
+ test_device_path_.AsUTF8Unsafe(),
+ base::Bind(&ImageWriterOperationManagerTest::StartCallback,
+ base::Unretained(this)));
EXPECT_TRUE(started_);
EXPECT_TRUE(start_success_);
@@ -137,7 +138,7 @@
manager.DestroyPartitions(
kDummyExtensionId,
- test_utils_.GetDevicePath().AsUTF8Unsafe(),
+ test_device_path_.AsUTF8Unsafe(),
base::Bind(&ImageWriterOperationManagerTest::StartCallback,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698