OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/drive/drive_app_registry.h" | 5 #include "components/drive/drive_app_registry.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/drive/drive_app_registry_observer.h" | 12 #include "components/drive/drive_app_registry_observer.h" |
13 #include "chrome/browser/drive/fake_drive_service.h" | 13 #include "components/drive/service/fake_drive_service.h" |
14 #include "google_apis/drive/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
15 #include "google_apis/drive/test_util.h" | 15 #include "google_apis/drive/test_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace drive { | 18 namespace drive { |
19 | 19 |
20 class TestDriveAppRegistryObserver : public DriveAppRegistryObserver { | 20 class TestDriveAppRegistryObserver : public DriveAppRegistryObserver { |
21 public: | 21 public: |
22 explicit TestDriveAppRegistryObserver(DriveAppRegistry* registry) | 22 explicit TestDriveAppRegistryObserver(DriveAppRegistry* registry) |
23 : registry_(registry), | 23 : registry_(registry), |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 google_apis::test_util::CreateCopyResultCallback(&error)); | 215 google_apis::test_util::CreateCopyResultCallback(&error)); |
216 base::RunLoop().RunUntilIdle(); | 216 base::RunLoop().RunUntilIdle(); |
217 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND); | 217 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND); |
218 | 218 |
219 // Check that the number is not changed this time. | 219 // Check that the number is not changed this time. |
220 apps_registry_->GetAppList(&apps); | 220 apps_registry_->GetAppList(&apps); |
221 EXPECT_EQ(original_count - 1, apps.size()); | 221 EXPECT_EQ(original_count - 1, apps.size()); |
222 } | 222 } |
223 | 223 |
224 } // namespace drive | 224 } // namespace drive |
OLD | NEW |