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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc

Issue 2317023003: sync and signin: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <deque> 9 #include <deque>
10 #include <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 file_system_(GURL("http://example.com"), 44 file_system_(GURL("http://example.com"),
45 in_memory_env_.get(), 45 in_memory_env_.get(),
46 base::ThreadTaskRunnerHandle::Get().get(), 46 base::ThreadTaskRunnerHandle::Get().get(),
47 base::ThreadTaskRunnerHandle::Get().get()) {} 47 base::ThreadTaskRunnerHandle::Get().get()) {}
48 48
49 void SetUp() override { 49 void SetUp() override {
50 file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED); 50 file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
51 51
52 ASSERT_TRUE(base_dir_.CreateUniqueTempDir()); 52 ASSERT_TRUE(base_dir_.CreateUniqueTempDir());
53 sync_context_ = 53 sync_context_ =
54 new LocalFileSyncContext(base_dir_.path(), 54 new LocalFileSyncContext(base_dir_.GetPath(), in_memory_env_.get(),
55 in_memory_env_.get(),
56 base::ThreadTaskRunnerHandle::Get().get(), 55 base::ThreadTaskRunnerHandle::Get().get(),
57 base::ThreadTaskRunnerHandle::Get().get()); 56 base::ThreadTaskRunnerHandle::Get().get());
58 ASSERT_EQ( 57 ASSERT_EQ(
59 SYNC_STATUS_OK, 58 SYNC_STATUS_OK,
60 file_system_.MaybeInitializeFileSystemContext(sync_context_.get())); 59 file_system_.MaybeInitializeFileSystemContext(sync_context_.get()));
61 } 60 }
62 61
63 void TearDown() override { 62 void TearDown() override {
64 sync_context_->ShutdownOnUIThread(); 63 sync_context_->ShutdownOnUIThread();
65 sync_context_ = nullptr; 64 sync_context_ = nullptr;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 707
709 // Make sure they're gone from the database too. 708 // Make sure they're gone from the database too.
710 DropChangesInTracker(); 709 DropChangesInTracker();
711 RestoreChangesFromTrackerDB(); 710 RestoreChangesFromTrackerDB();
712 711
713 GetAllChangedURLs(&urls); 712 GetAllChangedURLs(&urls);
714 EXPECT_TRUE(urls.empty()); 713 EXPECT_TRUE(urls.empty());
715 } 714 }
716 715
717 } // namespace sync_file_system 716 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698