OLD | NEW |
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/file_change.h" | 5 #include "components/drive/file_change.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace drive { | 9 namespace drive { |
10 | 10 |
11 TEST(ChangeListTest, FileChange_Change) { | 11 TEST(ChangeListTest, FileChange_Change) { |
12 FileChange::ChangeType change_type = FileChange::CHANGE_TYPE_ADD_OR_UPDATE; | 12 FileChange::ChangeType change_type = FileChange::CHANGE_TYPE_ADD_OR_UPDATE; |
13 FileChange::FileType file_type = FileChange::FILE_TYPE_FILE; | 13 FileChange::FileType file_type = FileChange::FILE_TYPE_FILE; |
14 | 14 |
15 FileChange::Change change1(change_type, file_type); | 15 FileChange::Change change1(change_type, file_type); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 changed_files.Update(change_path2, FileChange::FILE_TYPE_FILE, | 51 changed_files.Update(change_path2, FileChange::FILE_TYPE_FILE, |
52 FileChange::CHANGE_TYPE_ADD_OR_UPDATE); | 52 FileChange::CHANGE_TYPE_ADD_OR_UPDATE); |
53 changed_files.Update(change_path3, FileChange::FILE_TYPE_FILE, | 53 changed_files.Update(change_path3, FileChange::FILE_TYPE_FILE, |
54 FileChange::CHANGE_TYPE_ADD_OR_UPDATE); | 54 FileChange::CHANGE_TYPE_ADD_OR_UPDATE); |
55 | 55 |
56 ASSERT_EQ(3u, changed_files.size()); | 56 ASSERT_EQ(3u, changed_files.size()); |
57 ASSERT_EQ(2u, changed_files.CountDirectory(change_dir)); | 57 ASSERT_EQ(2u, changed_files.CountDirectory(change_dir)); |
58 } | 58 } |
59 | 59 |
60 } // namespace drive | 60 } // namespace drive |
OLD | NEW |