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

Side by Side Diff: chrome/browser/password_manager/password_store_x_unittest.cc

Issue 11568033: Small fixes to allow unit tests to compile with gcc 4.7.x (tested with gcc 4.7.2) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 PasswordFormData data = { 239 PasswordFormData data = {
240 PasswordForm::SCHEME_HTML, 240 PasswordForm::SCHEME_HTML,
241 realm.c_str(), 241 realm.c_str(),
242 origin.c_str(), 242 origin.c_str(),
243 action.c_str(), 243 action.c_str(),
244 L"submit_element", 244 L"submit_element",
245 L"username_element", 245 L"username_element",
246 L"password_element", 246 L"password_element",
247 autofillable ? L"username_value" : NULL, 247 autofillable ? L"username_value" : NULL,
248 autofillable ? L"password_value" : NULL, 248 autofillable ? L"password_value" : NULL,
249 autofillable, false, i + 1 }; 249 autofillable, false, static_cast<double>(i + 1) };
250 forms->push_back(CreatePasswordFormFromData(data)); 250 forms->push_back(CreatePasswordFormFromData(data));
251 } 251 }
252 } 252 }
253 253
254 } // anonymous namespace 254 } // anonymous namespace
255 255
256 enum BackendType { 256 enum BackendType {
257 NO_BACKEND, 257 NO_BACKEND,
258 FAILING_BACKEND, 258 FAILING_BACKEND,
259 WORKING_BACKEND 259 WORKING_BACKEND
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 540
541 INSTANTIATE_TEST_CASE_P(NoBackend, 541 INSTANTIATE_TEST_CASE_P(NoBackend,
542 PasswordStoreXTest, 542 PasswordStoreXTest,
543 testing::Values(NO_BACKEND)); 543 testing::Values(NO_BACKEND));
544 INSTANTIATE_TEST_CASE_P(FailingBackend, 544 INSTANTIATE_TEST_CASE_P(FailingBackend,
545 PasswordStoreXTest, 545 PasswordStoreXTest,
546 testing::Values(FAILING_BACKEND)); 546 testing::Values(FAILING_BACKEND));
547 INSTANTIATE_TEST_CASE_P(WorkingBackend, 547 INSTANTIATE_TEST_CASE_P(WorkingBackend,
548 PasswordStoreXTest, 548 PasswordStoreXTest,
549 testing::Values(WORKING_BACKEND)); 549 testing::Values(WORKING_BACKEND));
OLDNEW
« no previous file with comments | « base/string_number_conversions_unittest.cc ('k') | chrome/browser/predictors/autocomplete_action_predictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698