| OLD | NEW |
| 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/chromeos/drive/file_system/touch_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/touch_operation.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "chrome/browser/chromeos/drive/drive.pb.h" | |
| 10 #include "chrome/browser/chromeos/drive/file_errors.h" | 9 #include "chrome/browser/chromeos/drive/file_errors.h" |
| 11 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 10 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
| 12 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 11 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 12 #include "components/drive/drive.pb.h" |
| 13 #include "google_apis/drive/test_util.h" | 13 #include "google_apis/drive/test_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace drive { | 16 namespace drive { |
| 17 namespace file_system { | 17 namespace file_system { |
| 18 | 18 |
| 19 typedef OperationTestBase TouchOperationTest; | 19 typedef OperationTestBase TouchOperationTest; |
| 20 | 20 |
| 21 TEST_F(TouchOperationTest, TouchFile) { | 21 TEST_F(TouchOperationTest, TouchFile) { |
| 22 TouchOperation operation(blocking_task_runner(), | 22 TouchOperation operation(blocking_task_runner(), |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 EXPECT_EQ(1U, delegate()->get_changed_files().size()); | 51 EXPECT_EQ(1U, delegate()->get_changed_files().size()); |
| 52 EXPECT_TRUE(delegate()->get_changed_files().count(kTestPath)); | 52 EXPECT_TRUE(delegate()->get_changed_files().count(kTestPath)); |
| 53 | 53 |
| 54 EXPECT_EQ(1U, delegate()->updated_local_ids().size()); | 54 EXPECT_EQ(1U, delegate()->updated_local_ids().size()); |
| 55 EXPECT_TRUE(delegate()->updated_local_ids().count(entry.local_id())); | 55 EXPECT_TRUE(delegate()->updated_local_ids().count(entry.local_id())); |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace file_system | 58 } // namespace file_system |
| 59 } // namespace drive | 59 } // namespace drive |
| OLD | NEW |