OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/drive/file_system/create_file_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 7 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
8 #include "chrome/browser/google_apis/test_util.h" | 8 #include "google_apis/drive/test_util.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace drive { | 11 namespace drive { |
12 namespace file_system { | 12 namespace file_system { |
13 | 13 |
14 typedef OperationTestBase CreateFileOperationTest; | 14 typedef OperationTestBase CreateFileOperationTest; |
15 | 15 |
16 TEST_F(CreateFileOperationTest, CreateFile) { | 16 TEST_F(CreateFileOperationTest, CreateFile) { |
17 CreateFileOperation operation(blocking_task_runner(), | 17 CreateFileOperation operation(blocking_task_runner(), |
18 observer(), | 18 observer(), |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // If the mime type is not set and unknown, default to octet-stream. | 127 // If the mime type is not set and unknown, default to octet-stream. |
128 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kUnknown, &entry)); | 128 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kUnknown, &entry)); |
129 EXPECT_EQ("application/octet-stream", | 129 EXPECT_EQ("application/octet-stream", |
130 entry.file_specific_info().content_mime_type()); | 130 entry.file_specific_info().content_mime_type()); |
131 } | 131 } |
132 | 132 |
133 | 133 |
134 } // namespace file_system | 134 } // namespace file_system |
135 } // namespace drive | 135 } // namespace drive |
OLD | NEW |