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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc

Issue 679573002: [fsp] Separate recursive and non-recursive watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 2 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: chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc
index 838a403cc2a25b7a9b7eb0a2d23b0a1264e7b81f..20fec02049ebf3f27309d5932d4ff0ee39c28ea2 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry_unittest.cc
@@ -56,6 +56,7 @@ TEST_F(FileSystemProviderOperationsUnobserveEntryTest, Execute) {
NULL,
file_system_info_,
base::FilePath::FromUTF8Unsafe(kEntryPath),
+ true /* recursive */,
base::Bind(&util::LogStatusCallback, &callback_log));
unobserve_entry.SetDispatchEventImplForTesting(
base::Bind(&util::LoggingDispatchEventImpl::OnDispatchEventImpl,
@@ -80,6 +81,7 @@ TEST_F(FileSystemProviderOperationsUnobserveEntryTest, Execute) {
EXPECT_EQ(kFileSystemId, options.file_system_id);
EXPECT_EQ(kRequestId, options.request_id);
EXPECT_EQ(kEntryPath, options.entry_path);
+ EXPECT_TRUE(options.recursive);
}
TEST_F(FileSystemProviderOperationsUnobserveEntryTest, Execute_NoListener) {
@@ -90,6 +92,7 @@ TEST_F(FileSystemProviderOperationsUnobserveEntryTest, Execute_NoListener) {
NULL,
file_system_info_,
base::FilePath::FromUTF8Unsafe(kEntryPath),
+ true /* recursive */,
base::Bind(&util::LogStatusCallback, &callback_log));
unobserve_entry.SetDispatchEventImplForTesting(
base::Bind(&util::LoggingDispatchEventImpl::OnDispatchEventImpl,
@@ -106,6 +109,7 @@ TEST_F(FileSystemProviderOperationsUnobserveEntryTest, OnSuccess) {
NULL,
file_system_info_,
base::FilePath::FromUTF8Unsafe(kEntryPath),
+ true /* recursive */,
base::Bind(&util::LogStatusCallback, &callback_log));
unobserve_entry.SetDispatchEventImplForTesting(
base::Bind(&util::LoggingDispatchEventImpl::OnDispatchEventImpl,
@@ -128,6 +132,7 @@ TEST_F(FileSystemProviderOperationsUnobserveEntryTest, OnError) {
NULL,
file_system_info_,
base::FilePath::FromUTF8Unsafe(kEntryPath),
+ true /* recursive */,
base::Bind(&util::LogStatusCallback, &callback_log));
unobserve_entry.SetDispatchEventImplForTesting(
base::Bind(&util::LoggingDispatchEventImpl::OnDispatchEventImpl,

Powered by Google App Engine
This is Rietveld 408576698