| 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 class LocalFileChangeTrackerTest : public testing::Test { | 36 class LocalFileChangeTrackerTest : public testing::Test { | 
| 37  public: | 37  public: | 
| 38   LocalFileChangeTrackerTest() | 38   LocalFileChangeTrackerTest() | 
| 39       : in_memory_env_(leveldb::NewMemEnv(leveldb::Env::Default())), | 39       : in_memory_env_(leveldb::NewMemEnv(leveldb::Env::Default())), | 
| 40         file_system_(GURL("http://example.com"), | 40         file_system_(GURL("http://example.com"), | 
| 41                      in_memory_env_.get(), | 41                      in_memory_env_.get(), | 
| 42                      base::MessageLoopProxy::current().get(), | 42                      base::MessageLoopProxy::current().get(), | 
| 43                      base::MessageLoopProxy::current().get()) {} | 43                      base::MessageLoopProxy::current().get()) {} | 
| 44 | 44 | 
| 45   virtual void SetUp() OVERRIDE { | 45   virtual void SetUp() OVERRIDE { | 
| 46     file_system_.SetUp(); | 46     file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED); | 
| 47 | 47 | 
| 48     sync_context_ = | 48     sync_context_ = | 
| 49         new LocalFileSyncContext(base::FilePath(), | 49         new LocalFileSyncContext(base::FilePath(), | 
| 50                                  in_memory_env_.get(), | 50                                  in_memory_env_.get(), | 
| 51                                  base::MessageLoopProxy::current().get(), | 51                                  base::MessageLoopProxy::current().get(), | 
| 52                                  base::MessageLoopProxy::current().get()); | 52                                  base::MessageLoopProxy::current().get()); | 
| 53     ASSERT_EQ( | 53     ASSERT_EQ( | 
| 54         sync_file_system::SYNC_STATUS_OK, | 54         sync_file_system::SYNC_STATUS_OK, | 
| 55         file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); | 55         file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); | 
| 56   } | 56   } | 
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 677 | 677 | 
| 678   // Make sure they're gone from the database too. | 678   // Make sure they're gone from the database too. | 
| 679   DropChangesInTracker(); | 679   DropChangesInTracker(); | 
| 680   RestoreChangesFromTrackerDB(); | 680   RestoreChangesFromTrackerDB(); | 
| 681 | 681 | 
| 682   GetAllChangedURLs(&urls); | 682   GetAllChangedURLs(&urls); | 
| 683   EXPECT_TRUE(urls.empty()); | 683   EXPECT_TRUE(urls.empty()); | 
| 684 } | 684 } | 
| 685 | 685 | 
| 686 }  // namespace sync_file_system | 686 }  // namespace sync_file_system | 
| OLD | NEW | 
|---|