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

Side by Side Diff: components/drive/drive_uploader_unittest.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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
« no previous file with comments | « components/drive/drive_uploader.cc ('k') | components/drive/event_logger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/drive/drive_uploader.h" 5 #include "components/drive/drive_uploader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/drive/dummy_drive_service.h" 18 #include "components/drive/service/dummy_drive_service.h"
19 #include "google_apis/drive/drive_api_parser.h" 19 #include "google_apis/drive/drive_api_parser.h"
20 #include "google_apis/drive/test_util.h" 20 #include "google_apis/drive/test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using google_apis::CancelCallback; 23 using google_apis::CancelCallback;
24 using google_apis::FileResource; 24 using google_apis::FileResource;
25 using google_apis::DriveApiErrorCode; 25 using google_apis::DriveApiErrorCode;
26 using google_apis::DRIVE_NO_CONNECTION; 26 using google_apis::DRIVE_NO_CONNECTION;
27 using google_apis::DRIVE_OTHER_ERROR; 27 using google_apis::DRIVE_OTHER_ERROR;
28 using google_apis::HTTP_CONFLICT; 28 using google_apis::HTTP_CONFLICT;
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 946
947 EXPECT_EQ(HTTP_NOT_FOUND, results[0].error); 947 EXPECT_EQ(HTTP_NOT_FOUND, results[0].error);
948 EXPECT_TRUE(results[0].resume_url.is_empty()); 948 EXPECT_TRUE(results[0].resume_url.is_empty());
949 EXPECT_FALSE(results[0].file); 949 EXPECT_FALSE(results[0].file);
950 950
951 EXPECT_EQ(HTTP_NOT_FOUND, results[1].error); 951 EXPECT_EQ(HTTP_NOT_FOUND, results[1].error);
952 EXPECT_TRUE(results[1].resume_url.is_empty()); 952 EXPECT_TRUE(results[1].resume_url.is_empty());
953 EXPECT_FALSE(results[1].file); 953 EXPECT_FALSE(results[1].file);
954 } 954 }
955 } // namespace drive 955 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/drive_uploader.cc ('k') | components/drive/event_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698