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/open_file_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/open_file_operation.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
13 #include "chrome/browser/chromeos/drive/drive.pb.h" | 13 #include "chrome/browser/chromeos/drive/drive.pb.h" |
14 #include "chrome/browser/chromeos/drive/file_errors.h" | 14 #include "chrome/browser/chromeos/drive/file_errors.h" |
15 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 15 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
16 #include "chrome/browser/google_apis/test_util.h" | 16 #include "google_apis/drive/test_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace drive { | 19 namespace drive { |
20 namespace file_system { | 20 namespace file_system { |
21 | 21 |
22 class OpenFileOperationTest : public OperationTestBase { | 22 class OpenFileOperationTest : public OperationTestBase { |
23 protected: | 23 protected: |
24 virtual void SetUp() OVERRIDE { | 24 virtual void SetUp() OVERRIDE { |
25 OperationTestBase::SetUp(); | 25 OperationTestBase::SetUp(); |
26 | 26 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 close_callback2.Run(); | 263 close_callback2.Run(); |
264 | 264 |
265 // Here, all the clients close the file, so it should be uploaded then. | 265 // Here, all the clients close the file, so it should be uploaded then. |
266 EXPECT_EQ( | 266 EXPECT_EQ( |
267 1U, | 267 1U, |
268 observer()->upload_needed_local_ids().count(src_entry.local_id())); | 268 observer()->upload_needed_local_ids().count(src_entry.local_id())); |
269 } | 269 } |
270 | 270 |
271 } // namespace file_system | 271 } // namespace file_system |
272 } // namespace drive | 272 } // namespace drive |
OLD | NEW |