| OLD | NEW | 
|     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/bind.h" |     5 #include "base/bind.h" | 
|     6 #include "base/command_line.h" |     6 #include "base/command_line.h" | 
|     7 #include "base/logging.h" |     7 #include "base/logging.h" | 
|     8 #include "base/memory/ref_counted.h" |     8 #include "base/memory/ref_counted.h" | 
|     9 #include "base/memory/weak_ptr.h" |     9 #include "base/memory/weak_ptr.h" | 
|    10 #include "base/message_loop/message_loop.h" |    10 #include "base/message_loop/message_loop.h" | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    59 #include "third_party/WebKit/public/web/WebInputEvent.h" |    59 #include "third_party/WebKit/public/web/WebInputEvent.h" | 
|    60 #include "ui/base/window_open_disposition.h" |    60 #include "ui/base/window_open_disposition.h" | 
|    61 #include "url/gurl.h" |    61 #include "url/gurl.h" | 
|    62  |    62  | 
|    63 #if defined(OS_MACOSX) |    63 #if defined(OS_MACOSX) | 
|    64 #include "base/mac/mac_util.h" |    64 #include "base/mac/mac_util.h" | 
|    65 #include "base/mac/scoped_nsautorelease_pool.h" |    65 #include "base/mac/scoped_nsautorelease_pool.h" | 
|    66 #include "chrome/browser/ui/cocoa/run_loop_testing.h" |    66 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 
|    67 #endif |    67 #endif | 
|    68  |    68  | 
 |    69 using base::ASCIIToUTF16; | 
 |    70  | 
|    69 namespace autofill { |    71 namespace autofill { | 
|    70  |    72  | 
|    71 namespace { |    73 namespace { | 
|    72  |    74  | 
|    73 using testing::_; |    75 using testing::_; | 
|    74  |    76  | 
|    75 void MockCallback(const FormStructure*) {} |    77 void MockCallback(const FormStructure*) {} | 
|    76  |    78  | 
|    77 class MockAutofillMetrics : public AutofillMetrics { |    79 class MockAutofillMetrics : public AutofillMetrics { | 
|    78  public: |    80  public: | 
| (...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1416                        MAYBE_DoesntWorkOnBrokenHttps) { |  1418                        MAYBE_DoesntWorkOnBrokenHttps) { | 
|  1417   net::SpawnedTestServer https_server( |  1419   net::SpawnedTestServer https_server( | 
|  1418       net::SpawnedTestServer::TYPE_HTTPS, |  1420       net::SpawnedTestServer::TYPE_HTTPS, | 
|  1419       SSLOptions(SSLOptions::CERT_EXPIRED), |  1421       SSLOptions(SSLOptions::CERT_EXPIRED), | 
|  1420       base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))); |  1422       base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))); | 
|  1421   ASSERT_TRUE(https_server.Start()); |  1423   ASSERT_TRUE(https_server.Start()); | 
|  1422   EXPECT_FALSE(RunTestPage(https_server)); |  1424   EXPECT_FALSE(RunTestPage(https_server)); | 
|  1423 } |  1425 } | 
|  1424  |  1426  | 
|  1425 }  // namespace autofill |  1427 }  // namespace autofill | 
| OLD | NEW |