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

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

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/memory/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/download/save_package.h" 12 #include "chrome/browser/download/save_package.h"
13 #include "chrome/browser/net/url_request_mock_http_job.h" 13 #include "chrome/browser/net/url_request_mock_http_job.h"
14 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" 14 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
15 #include "content/browser/tab_contents/test_tab_contents.h" 15 #include "content/browser/tab_contents/test_tab_contents.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 #define FPL FILE_PATH_LITERAL 19 #define FPL FILE_PATH_LITERAL
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 TEST_F(SavePackageTest, TestGetUrlToBeSavedViewSource) { 414 TEST_F(SavePackageTest, TestGetUrlToBeSavedViewSource) {
415 FilePath file_name(FILE_PATH_LITERAL("a.htm")); 415 FilePath file_name(FILE_PATH_LITERAL("a.htm"));
416 GURL view_source_url = URLRequestMockHTTPJob::GetMockViewSourceUrl( 416 GURL view_source_url = URLRequestMockHTTPJob::GetMockViewSourceUrl(
417 FilePath(kTestDir).Append(file_name)); 417 FilePath(kTestDir).Append(file_name));
418 GURL actual_url = URLRequestMockHTTPJob::GetMockUrl( 418 GURL actual_url = URLRequestMockHTTPJob::GetMockUrl(
419 FilePath(kTestDir).Append(file_name)); 419 FilePath(kTestDir).Append(file_name));
420 NavigateAndCommit(view_source_url); 420 NavigateAndCommit(view_source_url);
421 EXPECT_EQ(actual_url, GetUrlToBeSaved()); 421 EXPECT_EQ(actual_url, GetUrlToBeSaved());
422 EXPECT_EQ(view_source_url, contents()->GetURL()); 422 EXPECT_EQ(view_source_url, contents()->GetURL());
423 } 423 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file_unittest.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698