| 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/chromeos/gdata/drive_test_util.h" | 5 #include "chrome/browser/chromeos/gdata/drive_test_util.h" |
| 6 | 6 |
| 7 #include "base/json/json_file_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
| 8 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 8 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 9 #include "chrome/browser/chromeos/gdata/drive_api_parser.h" | |
| 10 #include "chrome/browser/chromeos/gdata/drive_file_system.h" | 9 #include "chrome/browser/chromeos/gdata/drive_file_system.h" |
| 10 #include "chrome/browser/google_apis/drive_api_parser.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace gdata { | 13 namespace gdata { |
| 14 namespace test_util { | 14 namespace test_util { |
| 15 | 15 |
| 16 DriveCacheEntry ToCacheEntry(int cache_state) { | 16 DriveCacheEntry ToCacheEntry(int cache_state) { |
| 17 DriveCacheEntry cache_entry; | 17 DriveCacheEntry cache_entry; |
| 18 cache_entry.set_is_present(cache_state & TEST_CACHE_STATE_PRESENT); | 18 cache_entry.set_is_present(cache_state & TEST_CACHE_STATE_PRESENT); |
| 19 cache_entry.set_is_pinned(cache_state & TEST_CACHE_STATE_PINNED); | 19 cache_entry.set_is_pinned(cache_state & TEST_CACHE_STATE_PINNED); |
| 20 cache_entry.set_is_dirty(cache_state & TEST_CACHE_STATE_DIRTY); | 20 cache_entry.set_is_dirty(cache_state & TEST_CACHE_STATE_DIRTY); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 GURL unused; | 114 GURL unused; |
| 115 DriveFileError file_error = file_system->UpdateFromFeedForTesting( | 115 DriveFileError file_error = file_system->UpdateFromFeedForTesting( |
| 116 feed_list, | 116 feed_list, |
| 117 start_changestamp, | 117 start_changestamp, |
| 118 root_feed_changestamp); | 118 root_feed_changestamp); |
| 119 ASSERT_EQ(DRIVE_FILE_OK, file_error); | 119 ASSERT_EQ(DRIVE_FILE_OK, file_error); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace test_util | 122 } // namespace test_util |
| 123 } // namespace gdata | 123 } // namespace gdata |
| OLD | NEW |