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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc

Issue 515093002: FileAPI/sync file system cleanups for scoped_refptr operator T* cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <algorithm> 5 #include <algorithm>
6 #include <stack> 6 #include <stack>
7 7
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h" 24 #include "chrome/browser/sync_file_system/local/local_file_sync_context.h"
25 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h" 25 #include "chrome/browser/sync_file_system/local/local_file_sync_service.h"
26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
27 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 27 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
28 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 28 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
29 #include "chrome/test/base/testing_profile.h" 29 #include "chrome/test/base/testing_profile.h"
30 #include "content/public/test/test_browser_thread.h" 30 #include "content/public/test/test_browser_thread.h"
31 #include "content/public/test/test_browser_thread_bundle.h" 31 #include "content/public/test/test_browser_thread_bundle.h"
32 #include "extensions/common/extension.h" 32 #include "extensions/common/extension.h"
33 #include "google_apis/drive/drive_api_parser.h" 33 #include "google_apis/drive/drive_api_parser.h"
34 #include "net/url_request/url_request_context_getter.h"
nhiroki 2014/08/28 09:36:57 nit: is this necessary?
dcheng 2014/08/28 09:40:05 This is required, because this test instantiates a
nhiroki 2014/08/28 09:51:57 That makes sense! Thanks for your explanation. It'
34 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
35 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" 36 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
36 #include "third_party/leveldatabase/src/include/leveldb/env.h" 37 #include "third_party/leveldatabase/src/include/leveldb/env.h"
37 #include "webkit/browser/fileapi/file_system_context.h" 38 #include "webkit/browser/fileapi/file_system_context.h"
38 39
39 #define FPL(a) FILE_PATH_LITERAL(a) 40 #define FPL(a) FILE_PATH_LITERAL(a)
40 41
41 namespace sync_file_system { 42 namespace sync_file_system {
42 namespace drive_backend { 43 namespace drive_backend {
43 44
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 1722
1722 EXPECT_EQ(1u, CountApp()); 1723 EXPECT_EQ(1u, CountApp());
1723 EXPECT_EQ(1u, CountLocalFile(app_id)); 1724 EXPECT_EQ(1u, CountLocalFile(app_id));
1724 1725
1725 EXPECT_EQ(2u, CountMetadata()); 1726 EXPECT_EQ(2u, CountMetadata());
1726 EXPECT_EQ(2u, CountTracker()); 1727 EXPECT_EQ(2u, CountTracker());
1727 } 1728 }
1728 1729
1729 } // namespace drive_backend 1730 } // namespace drive_backend
1730 } // namespace sync_file_system 1731 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698