summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/autocomplete/search_provider_unittest.cc5
-rw-r--r--chrome/browser/password_manager/password_form_manager_unittest.cc12
-rw-r--r--chrome/chrome.gyp4
3 files changed, 13 insertions, 8 deletions
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc
index 5b81dc5..ce16482 100644
--- a/chrome/browser/autocomplete/search_provider_unittest.cc
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/time.h"
+#include "build/build_config.h"
#include "chrome/browser/autocomplete/search_provider.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/net/test_url_fetcher_factory.h"
@@ -139,7 +140,11 @@ void SearchProviderTest::RunTillProviderDone() {
return;
quit_when_done_ = true;
+#if defined(OS_WIN)
message_loop_.Run(NULL);
+#elif defined(OS_POSIX)
+ message_loop_.Run();
+#endif
}
void SearchProviderTest::QueryForInput(const std::wstring& text) {
diff --git a/chrome/browser/password_manager/password_form_manager_unittest.cc b/chrome/browser/password_manager/password_form_manager_unittest.cc
index 8e90ebf..092cfd9 100644
--- a/chrome/browser/password_manager/password_form_manager_unittest.cc
+++ b/chrome/browser/password_manager/password_form_manager_unittest.cc
@@ -15,16 +15,16 @@ class PasswordFormManagerTest : public testing::Test {
PasswordFormManagerTest() {
}
virtual void SetUp() {
- observed_form_.origin = GURL(L"http://www.google.com/a/LoginAuth");
- observed_form_.action = GURL(L"http://www.google.com/a/Login");
+ observed_form_.origin = GURL("http://www.google.com/a/LoginAuth");
+ observed_form_.action = GURL("http://www.google.com/a/Login");
observed_form_.username_element = L"Email";
observed_form_.password_element = L"Passwd";
observed_form_.submit_element = L"signIn";
observed_form_.signon_realm = "http://www.google.com";
saved_match_ = observed_form_;
- saved_match_.origin = GURL(L"http://www.google.com/a/ServiceLoginAuth");
- saved_match_.action = GURL(L"http://www.google.com/a/ServiceLogin");
+ saved_match_.origin = GURL("http://www.google.com/a/ServiceLoginAuth");
+ saved_match_.action = GURL("http://www.google.com/a/ServiceLogin");
saved_match_.preferred = true;
saved_match_.username_value = L"test@gmail.com";
saved_match_.password_value = L"test1";
@@ -168,8 +168,8 @@ TEST_F(PasswordFormManagerTest, TestIgnoreResult) {
saved_match()->ssl_valid = false;
// Different paths for action / origin are okay.
- saved_match()->action = GURL(L"http://www.google.com/b/Login");
- saved_match()->origin = GURL(L"http://www.google.com/foo");
+ saved_match()->action = GURL("http://www.google.com/b/Login");
+ saved_match()->origin = GURL("http://www.google.com/foo");
EXPECT_FALSE(IgnoredResult(manager, saved_match()));
// Done.
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 38dd2d0..70038b7 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -3316,13 +3316,14 @@
},
}, { # else: OS != "win"
'sources!': [
- 'browser/autocomplete/search_provider_unittest.cc',
'browser/bookmarks/bookmark_codec_unittest.cc',
'browser/bookmarks/bookmark_drag_data_unittest.cc',
'browser/bookmarks/bookmark_folder_tree_model_unittest.cc',
'browser/bookmarks/bookmark_table_model_unittest.cc',
+ # Need to port browser_with_test_window_test.* first
'browser/browser_commands_unittest.cc',
'browser/browser_unittest.cc',
+ # Need to port browser/automation/ui_controls.h
'browser/debugger/devtools_sanity_unittest.cc',
'browser/extensions/extension_process_manager_unittest.cc',
'browser/extensions/extension_view_unittest.cc',
@@ -3330,7 +3331,6 @@
'browser/importer/firefox_importer_unittest.cc',
'browser/importer/importer_unittest.cc',
'browser/login_prompt_unittest.cc',
- 'browser/password_manager/password_form_manager_unittest.cc',
'browser/printing/page_number_unittest.cc',
'browser/printing/page_overlays_unittest.cc',
'browser/printing/print_job_unittest.cc',