| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/test/test_simple_task_runner.h" | 9 #include "base/test/test_simple_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "chrome/browser/safe_browsing/chunk.pb.h" | 12 #include "chrome/browser/safe_browsing/chunk.pb.h" |
| 13 #include "chrome/browser/safe_browsing/protocol_manager.h" | 13 #include "chrome/browser/safe_browsing/protocol_manager.h" |
| 14 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | |
| 15 #include "components/safe_browsing_db/safebrowsing.pb.h" | 14 #include "components/safe_browsing_db/safebrowsing.pb.h" |
| 15 #include "components/safe_browsing_db/util.h" |
| 16 #include "google_apis/google_api_keys.h" | 16 #include "google_apis/google_api_keys.h" |
| 17 #include "net/base/escape.h" | 17 #include "net/base/escape.h" |
| 18 #include "net/base/load_flags.h" | 18 #include "net/base/load_flags.h" |
| 19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 20 #include "net/url_request/test_url_fetcher_factory.h" | 20 #include "net/url_request/test_url_fetcher_factory.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gmock_mutant.h" | 22 #include "testing/gmock_mutant.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 using base::Time; | 25 using base::Time; |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 | 1127 |
| 1128 EXPECT_FALSE(pm->IsUpdateScheduled()); | 1128 EXPECT_FALSE(pm->IsUpdateScheduled()); |
| 1129 | 1129 |
| 1130 // Invoke the AddChunksCallback to finish the update. | 1130 // Invoke the AddChunksCallback to finish the update. |
| 1131 runner->RunPendingTasks(); | 1131 runner->RunPendingTasks(); |
| 1132 | 1132 |
| 1133 EXPECT_TRUE(pm->IsUpdateScheduled()); | 1133 EXPECT_TRUE(pm->IsUpdateScheduled()); |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 } // namespace safe_browsing | 1136 } // namespace safe_browsing |
| OLD | NEW |