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/update_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/update_operation.h" |
6 | 6 |
7 #include "base/task_runner_util.h" | 7 #include "base/task_runner_util.h" |
8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
9 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 9 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
10 #include "chrome/browser/drive/fake_drive_service.h" | 10 #include "chrome/browser/drive/fake_drive_service.h" |
11 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 11 #include "google_apis/drive/gdata_wapi_parser.h" |
12 #include "chrome/browser/google_apis/test_util.h" | 12 #include "google_apis/drive/test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace drive { | 15 namespace drive { |
16 namespace file_system { | 16 namespace file_system { |
17 | 17 |
18 class UpdateOperationTest : public OperationTestBase { | 18 class UpdateOperationTest : public OperationTestBase { |
19 protected: | 19 protected: |
20 virtual void SetUp() OVERRIDE { | 20 virtual void SetUp() OVERRIDE { |
21 OperationTestBase::SetUp(); | 21 OperationTestBase::SetUp(); |
22 operation_.reset(new UpdateOperation(blocking_task_runner(), | 22 operation_.reset(new UpdateOperation(blocking_task_runner(), |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 google_apis::test_util::CreateCopyResultCallback(&error)); | 272 google_apis::test_util::CreateCopyResultCallback(&error)); |
273 test_util::RunBlockingPoolTask(); | 273 test_util::RunBlockingPoolTask(); |
274 EXPECT_EQ(FILE_ERROR_OK, error); | 274 EXPECT_EQ(FILE_ERROR_OK, error); |
275 | 275 |
276 // Make sure that the server is receiving a change. | 276 // Make sure that the server is receiving a change. |
277 EXPECT_LE(original_changestamp, fake_service()->largest_changestamp()); | 277 EXPECT_LE(original_changestamp, fake_service()->largest_changestamp()); |
278 } | 278 } |
279 | 279 |
280 } // namespace file_system | 280 } // namespace file_system |
281 } // namespace drive | 281 } // namespace drive |
OLD | NEW |