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

Side by Side Diff: components/drive/file_change_unittest.cc

Issue 1246753003: Move a subset of chrome/browser/chromeos/drive into components/drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed incorrect reference to a GYP dependency. Created 5 years, 4 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
« no previous file with comments | « components/drive/file_change.cc ('k') | components/drive/file_errors.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « components/drive/file_change.cc ('k') | components/drive/file_errors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698