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

Side by Side Diff: chrome/browser/download/save_package_unittest.cc

Issue 3040: Move the Save Page code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/download/save_page_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "chrome/browser/save_package.h" 6 #include "chrome/browser/download/save_package.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 // 0 1 2 3 4 5 6 9 // 0 1 2 3 4 5 6
10 // 0123456789012345678901234567890123456789012345678901234567890123456789 10 // 0123456789012345678901234567890123456789012345678901234567890123456789
11 static const wchar_t* const kLongFilePath = 11 static const wchar_t* const kLongFilePath =
12 L"C:\\EFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz01234567" 12 L"C:\\EFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz01234567"
13 L"89ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz012345" 13 L"89ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz012345"
14 L"6789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123" 14 L"6789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123"
15 L"456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789a.htm"; 15 L"456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789a.htm";
16 16
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::wstring file_name; 161 std::wstring file_name;
162 bool ok = GetGeneratedFilename(false, 162 bool ok = GetGeneratedFilename(false,
163 kGeneratedFiles[i].disposition, 163 kGeneratedFiles[i].disposition,
164 kGeneratedFiles[i].url, 164 kGeneratedFiles[i].url,
165 kGeneratedFiles[i].need_htm_ext, 165 kGeneratedFiles[i].need_htm_ext,
166 &file_name); 166 &file_name);
167 ASSERT_FALSE(ok); 167 ASSERT_FALSE(ok);
168 } 168 }
169 } 169 }
170 170
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/download/save_page_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698