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

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

Issue 146963006: Move blob/mock_blob_url_request_context to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix duplicate GYPI entries (should fix link errors on Android and Win) 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 unified diff | Download patch | Annotate | Revision Log
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 <deque> 7 #include <deque>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/message_loop/message_loop_proxy.h" 14 #include "base/message_loop/message_loop_proxy.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h" 16 #include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h"
17 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" 17 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
18 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 18 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
19 #include "chrome/browser/sync_file_system/sync_status_code.h" 19 #include "chrome/browser/sync_file_system/sync_status_code.h"
20 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 20 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
21 #include "content/public/test/mock_blob_url_request_context.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 #include "webkit/browser/blob/mock_blob_url_request_context.h"
23 #include "webkit/browser/fileapi/file_system_context.h" 23 #include "webkit/browser/fileapi/file_system_context.h"
24 #include "webkit/browser/quota/quota_manager.h" 24 #include "webkit/browser/quota/quota_manager.h"
25 25
26 using fileapi::FileSystemContext; 26 using fileapi::FileSystemContext;
27 using fileapi::FileSystemURL; 27 using fileapi::FileSystemURL;
28 using fileapi::FileSystemURLSet; 28 using fileapi::FileSystemURLSet;
29 using webkit_blob::MockBlobURLRequestContext; 29 using content::MockBlobURLRequestContext;
30 using webkit_blob::ScopedTextBlob; 30 using content::ScopedTextBlob;
31 31
32 namespace sync_file_system { 32 namespace sync_file_system {
33 33
34 class LocalFileChangeTrackerTest : public testing::Test { 34 class LocalFileChangeTrackerTest : public testing::Test {
35 public: 35 public:
36 LocalFileChangeTrackerTest() 36 LocalFileChangeTrackerTest()
37 : file_system_(GURL("http://example.com"), 37 : file_system_(GURL("http://example.com"),
38 base::MessageLoopProxy::current().get(), 38 base::MessageLoopProxy::current().get(),
39 base::MessageLoopProxy::current().get()) {} 39 base::MessageLoopProxy::current().get()) {}
40 40
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 671
672 // Make sure they're gone from the database too. 672 // Make sure they're gone from the database too.
673 DropChangesInTracker(); 673 DropChangesInTracker();
674 RestoreChangesFromTrackerDB(); 674 RestoreChangesFromTrackerDB();
675 675
676 GetAllChangedURLs(&urls); 676 GetAllChangedURLs(&urls);
677 EXPECT_TRUE(urls.empty()); 677 EXPECT_TRUE(urls.empty());
678 } 678 }
679 679
680 } // namespace sync_file_system 680 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698