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/search_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/search_operation.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 8 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
9 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 9 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
10 #include "chrome/browser/drive/fake_drive_service.h" | 10 #include "components/drive/service/fake_drive_service.h" |
11 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
12 #include "google_apis/drive/drive_api_parser.h" | 12 #include "google_apis/drive/drive_api_parser.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 SearchOperationTest; | 19 typedef OperationTestBase SearchOperationTest; |
20 | 20 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // Unlock, this should resume the pending search. | 148 // Unlock, this should resume the pending search. |
149 lock.reset(); | 149 lock.reset(); |
150 content::RunAllBlockingPoolTasksUntilIdle(); | 150 content::RunAllBlockingPoolTasksUntilIdle(); |
151 EXPECT_EQ(FILE_ERROR_OK, error); | 151 EXPECT_EQ(FILE_ERROR_OK, error); |
152 ASSERT_TRUE(results); | 152 ASSERT_TRUE(results); |
153 EXPECT_EQ(1u, results->size()); | 153 EXPECT_EQ(1u, results->size()); |
154 } | 154 } |
155 | 155 |
156 } // namespace file_system | 156 } // namespace file_system |
157 } // namespace drive | 157 } // namespace drive |
OLD | NEW |