diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 17:01:37 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 17:01:37 +0000 |
commit | 489d73e7fca72f29bd6620e268609133aa217795 (patch) | |
tree | a3ea497ed6b15be2d9742821dd4a2f36a0d885ce /chrome/browser/extensions/user_script_master_unittest.cc | |
parent | 60c413c96834553e182e8c9c34d1e8958f3b0fb5 (diff) | |
download | chromium_src-489d73e7fca72f29bd6620e268609133aa217795.zip chromium_src-489d73e7fca72f29bd6620e268609133aa217795.tar.gz chromium_src-489d73e7fca72f29bd6620e268609133aa217795.tar.bz2 |
Run more unit tests on Linux:
- used string16 instead of wstring where needed
- replaced GetTickCount calls with portable functions from base/time.h
- misc GCC cleanups
- enabled following unit tests on Linux:
browser/autocomplete/history_contents_provider_unittest.cc
browser/autocomplete/history_url_provider_unittest.cc
browser/autocomplete/keyword_provider_unittest.cc
browser/bookmarks/bookmark_html_writer_unittest.cc
Review URL: http://codereview.chromium.org/39335
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/user_script_master_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/user_script_master_unittest.cc b/chrome/browser/extensions/user_script_master_unittest.cc index 7e5408c..b9945bd 100644 --- a/chrome/browser/extensions/user_script_master_unittest.cc +++ b/chrome/browser/extensions/user_script_master_unittest.cc @@ -98,7 +98,7 @@ TEST_F(UserScriptMasterTest, NewScripts) { FilePath path = script_dir_.AppendASCII("script.user.js"); const char content[] = "some content"; - int written = file_util::WriteFile(path, content, sizeof(content)); + size_t written = file_util::WriteFile(path, content, sizeof(content)); ASSERT_EQ(written, sizeof(content)); message_loop_.Run(); @@ -111,7 +111,7 @@ TEST_F(UserScriptMasterTest, ExistingScripts) { FilePath path = script_dir_.AppendASCII("script.user.js"); const char content[] = "some content"; - int written = file_util::WriteFile(path, content, sizeof(content)); + size_t written = file_util::WriteFile(path, content, sizeof(content)); ASSERT_EQ(written, sizeof(content)); scoped_refptr<UserScriptMaster> master( |