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

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

Issue 175423004: Revert 252466 "In order to support writing on windows we need to..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 252593)
+++ trunk/src/chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc (working copy)
@@ -68,12 +68,6 @@
start_error_ = error;
}
- void CancelCallback(bool success, const std::string& error) {
- cancelled_ = true;
- cancel_success_ = true;
- cancel_error_ = error;
- }
-
protected:
ImageWriterOperationManagerTest()
: started_(false),
@@ -93,10 +87,6 @@
bool start_success_;
std::string start_error_;
- bool cancelled_;
- bool cancel_success_;
- std::string cancel_error_;
-
TestingProfile test_profile_;
FakeExtensionSystem* extension_system_;
FakeEventRouter* event_router_;
@@ -122,15 +112,6 @@
EXPECT_TRUE(start_success_);
EXPECT_EQ("", start_error_);
- manager.CancelWrite(
- kDummyExtensionId,
- base::Bind(&ImageWriterOperationManagerTest::CancelCallback,
- base::Unretained(this)));
-
- EXPECT_TRUE(cancelled_);
- EXPECT_TRUE(cancel_success_);
- EXPECT_EQ("", cancel_error_);
-
base::RunLoop().RunUntilIdle();
}
@@ -147,15 +128,6 @@
EXPECT_TRUE(start_success_);
EXPECT_EQ("", start_error_);
- manager.CancelWrite(
- kDummyExtensionId,
- base::Bind(&ImageWriterOperationManagerTest::CancelCallback,
- base::Unretained(this)));
-
- EXPECT_TRUE(cancelled_);
- EXPECT_TRUE(cancel_success_);
- EXPECT_EQ("", cancel_error_);
-
base::RunLoop().RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698