| 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 "components/drive/drive_app_registry.h" | 5 #include "components/drive/drive_app_registry.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 11 #include "base/values.h" | 13 #include "base/values.h" |
| 12 #include "components/drive/drive_app_registry_observer.h" | 14 #include "components/drive/drive_app_registry_observer.h" |
| 13 #include "components/drive/service/fake_drive_service.h" | 15 #include "components/drive/service/fake_drive_service.h" |
| 14 #include "google_apis/drive/drive_api_parser.h" | 16 #include "google_apis/drive/drive_api_parser.h" |
| 15 #include "google_apis/drive/test_util.h" | 17 #include "google_apis/drive/test_util.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 google_apis::test_util::CreateCopyResultCallback(&error)); | 217 google_apis::test_util::CreateCopyResultCallback(&error)); |
| 216 base::RunLoop().RunUntilIdle(); | 218 base::RunLoop().RunUntilIdle(); |
| 217 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND); | 219 EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND); |
| 218 | 220 |
| 219 // Check that the number is not changed this time. | 221 // Check that the number is not changed this time. |
| 220 apps_registry_->GetAppList(&apps); | 222 apps_registry_->GetAppList(&apps); |
| 221 EXPECT_EQ(original_count - 1, apps.size()); | 223 EXPECT_EQ(original_count - 1, apps.size()); |
| 222 } | 224 } |
| 223 | 225 |
| 224 } // namespace drive | 226 } // namespace drive |
| OLD | NEW |