Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: chrome/browser/chromeos/gdata/drive_test_util.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_test_util.h ('k') | chrome/browser/chromeos/gdata/drive_upload_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698