OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/google_apis/drive_api_parser.h" | 5 #include "chrome/browser/google_apis/drive_api_parser.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 15 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
16 #include "chrome/browser/google_apis/test_util.h" | 16 #include "chrome/browser/google_apis/test_util.h" |
17 #include "chrome/browser/google_apis/time_util.h" | 17 #include "chrome/browser/google_apis/time_util.h" |
18 #include "chrome/common/chrome_paths.h" | |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 using base::Value; | 20 using base::Value; |
22 using base::DictionaryValue; | 21 using base::DictionaryValue; |
23 using base::ListValue; | 22 using base::ListValue; |
24 | 23 |
25 namespace google_apis { | 24 namespace google_apis { |
26 | 25 |
27 // TODO(nhiroki): Make it possible to run these tests on any platforms after | 26 // TODO(nhiroki): Make it possible to run these tests on any platforms after |
28 // moving json files to out of 'chromeos' directory (http://crbug.com/149788). | 27 // moving json files to out of 'chromeos' directory (http://crbug.com/149788). |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 EXPECT_TRUE(change4.is_deleted()); | 287 EXPECT_TRUE(change4.is_deleted()); |
289 | 288 |
290 scoped_ptr<ResourceEntry> entry4( | 289 scoped_ptr<ResourceEntry> entry4( |
291 ResourceEntry::CreateFromChangeResource(change4)); | 290 ResourceEntry::CreateFromChangeResource(change4)); |
292 EXPECT_EQ(change4.file_id(), entry4->resource_id()); | 291 EXPECT_EQ(change4.file_id(), entry4->resource_id()); |
293 EXPECT_EQ(change4.is_deleted(), entry4->deleted()); | 292 EXPECT_EQ(change4.is_deleted(), entry4->deleted()); |
294 } | 293 } |
295 #endif // OS_CHROMEOS | 294 #endif // OS_CHROMEOS |
296 | 295 |
297 } // namespace google_apis | 296 } // namespace google_apis |
OLD | NEW |