diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
commit | 640517fdd23e08ed95cf129d27457db817ee6124 (patch) | |
tree | 2674bc857b9d1b566e05bcfa1dd5c8cfd1897dbf /chrome/browser | |
parent | f92ed219c9aeeed79993d1d32f34e5d5c9888dbe (diff) | |
download | chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.zip chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.gz chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.bz2 |
Begin the first small step towards using FilePath everywhere:
- Add some transition APIs.
- Start migrating some code to transition APIs.
Review URL: http://codereview.chromium.org/8825
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/download/download_uitest.cc | 9 | ||||
-rw-r--r-- | chrome/browser/download/save_page_uitest.cc | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/download/download_uitest.cc b/chrome/browser/download/download_uitest.cc index e6c071e..c961841 100644 --- a/chrome/browser/download/download_uitest.cc +++ b/chrome/browser/download/download_uitest.cc @@ -73,7 +73,7 @@ class DownloadTest : public UITest { // Find the path on the client. std::wstring file_on_client(download_prefix_); file_on_client.append(client_filename); - EXPECT_PRED1(file_util::PathExists, file_on_client); + EXPECT_TRUE(file_util::PathExists(file_on_client)); // Find the path on the server. std::wstring file_on_server; @@ -84,14 +84,15 @@ class DownloadTest : public UITest { ASSERT_TRUE(file_util::PathExists(file_on_server)); // Check that we downloaded the file correctly. - EXPECT_PRED2(file_util::ContentsEqual, file_on_server, file_on_client); + EXPECT_TRUE(file_util::ContentsEqual(file_on_server, + file_on_client)); // Check if the Zone Identifier is correclty set. if (VolumeSupportsADS(file_on_client)) CheckZoneIdentifier(file_on_client); // Delete the client copy of the file. - EXPECT_PRED2(file_util::Delete, file_on_client, false); + EXPECT_TRUE(file_util::Delete(file_on_client, false)); } void CleanUpDownload(const std::wstring& file) { @@ -131,7 +132,7 @@ class DownloadTest : public UITest { } std::wstring filename = file_util::GetFilenameFromPath(url); - EXPECT_PRED1(file_util::PathExists, download_prefix_ + filename); + EXPECT_TRUE(file_util::PathExists(download_prefix_ + filename)); // Delete the file we just downloaded. for (int i = 0; i < 10; ++i) { diff --git a/chrome/browser/download/save_page_uitest.cc b/chrome/browser/download/save_page_uitest.cc index 4e9fca6..551c335 100644 --- a/chrome/browser/download/save_page_uitest.cc +++ b/chrome/browser/download/save_page_uitest.cc @@ -43,7 +43,7 @@ class SavePageTest : public UITest { EXPECT_TRUE(file_util::GetFileSize(client_file, &client_file_size)); EXPECT_TRUE(file_util::GetFileSize(server_file_name, &server_file_size)); EXPECT_EQ(client_file_size, server_file_size); - EXPECT_PRED2(file_util::ContentsEqual, client_file, server_file_name); + EXPECT_TRUE(file_util::ContentsEqual(client_file, server_file_name)); } EXPECT_TRUE(DieFileDie(client_file, false)); |