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

Side by Side Diff: chrome/browser/chromeos/drive/resource_metadata_unittest.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/drive/resource_metadata.h" 5 #include "chrome/browser/chromeos/drive/resource_metadata.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "chrome/browser/chromeos/drive/drive.pb.h" 15 #include "chrome/browser/chromeos/drive/drive.pb.h"
16 #include "chrome/browser/chromeos/drive/file_system_util.h" 16 #include "chrome/browser/chromeos/drive/file_system_util.h"
17 #include "chrome/browser/chromeos/drive/test_util.h" 17 #include "chrome/browser/chromeos/drive/test_util.h"
18 #include "chrome/browser/google_apis/test_util.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "google_apis/drive/test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace drive { 23 namespace drive {
24 namespace internal { 24 namespace internal {
25 namespace { 25 namespace {
26 26
27 const char kTestRootResourceId[] = "test_root"; 27 const char kTestRootResourceId[] = "test_root";
28 28
29 // The changestamp of the resource metadata used in 29 // The changestamp of the resource metadata used in
30 // ResourceMetadataTest. 30 // ResourceMetadataTest.
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 742
743 // The "trash" directory should be empty. 743 // The "trash" directory should be empty.
744 ASSERT_EQ(FILE_ERROR_OK, 744 ASSERT_EQ(FILE_ERROR_OK,
745 resource_metadata_->ReadDirectoryByPath( 745 resource_metadata_->ReadDirectoryByPath(
746 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); 746 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries));
747 EXPECT_TRUE(entries.empty()); 747 EXPECT_TRUE(entries.empty());
748 } 748 }
749 749
750 } // namespace internal 750 } // namespace internal
751 } // namespace drive 751 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698