| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 5 #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" | 
| 6 | 6 | 
| 7 #include <deque> | 7 #include <deque> | 
| 8 #include <set> | 8 #include <set> | 
| 9 | 9 | 
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 36   LocalFileChangeTrackerTest() | 36   LocalFileChangeTrackerTest() | 
| 37       : message_loop_(base::MessageLoop::TYPE_IO), | 37       : message_loop_(base::MessageLoop::TYPE_IO), | 
| 38         file_system_(GURL("http://example.com"), | 38         file_system_(GURL("http://example.com"), | 
| 39                      base::MessageLoopProxy::current().get(), | 39                      base::MessageLoopProxy::current().get(), | 
| 40                      base::MessageLoopProxy::current().get()) {} | 40                      base::MessageLoopProxy::current().get()) {} | 
| 41 | 41 | 
| 42   virtual void SetUp() OVERRIDE { | 42   virtual void SetUp() OVERRIDE { | 
| 43     file_system_.SetUp(); | 43     file_system_.SetUp(); | 
| 44 | 44 | 
| 45     sync_context_ = | 45     sync_context_ = | 
| 46         new LocalFileSyncContext(base::MessageLoopProxy::current().get(), | 46         new LocalFileSyncContext(base::FilePath(), | 
|  | 47                                  base::MessageLoopProxy::current().get(), | 
| 47                                  base::MessageLoopProxy::current().get()); | 48                                  base::MessageLoopProxy::current().get()); | 
| 48     ASSERT_EQ( | 49     ASSERT_EQ( | 
| 49         sync_file_system::SYNC_STATUS_OK, | 50         sync_file_system::SYNC_STATUS_OK, | 
| 50         file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); | 51         file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); | 
| 51   } | 52   } | 
| 52 | 53 | 
| 53   virtual void TearDown() OVERRIDE { | 54   virtual void TearDown() OVERRIDE { | 
| 54     if (sync_context_.get()) | 55     if (sync_context_.get()) | 
| 55       sync_context_->ShutdownOnUIThread(); | 56       sync_context_->ShutdownOnUIThread(); | 
| 56     sync_context_ = NULL; | 57     sync_context_ = NULL; | 
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 594   ASSERT_EQ(2U, urls_to_process.size()); | 595   ASSERT_EQ(2U, urls_to_process.size()); | 
| 595 | 596 | 
| 596   // The exact order of recursive removal cannot be determined. | 597   // The exact order of recursive removal cannot be determined. | 
| 597   EXPECT_TRUE(URL(kPath1) == urls_to_process[0] || | 598   EXPECT_TRUE(URL(kPath1) == urls_to_process[0] || | 
| 598               URL(kPath2) == urls_to_process[0]); | 599               URL(kPath2) == urls_to_process[0]); | 
| 599   EXPECT_TRUE(URL(kPath1) == urls_to_process[1] || | 600   EXPECT_TRUE(URL(kPath1) == urls_to_process[1] || | 
| 600               URL(kPath2) == urls_to_process[1]); | 601               URL(kPath2) == urls_to_process[1]); | 
| 601 } | 602 } | 
| 602 | 603 | 
| 603 }  // namespace sync_file_system | 604 }  // namespace sync_file_system | 
| OLD | NEW | 
|---|