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 | 5 |
6 #include "base/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/browser/safe_browsing/protocol_manager.h" | 10 #include "chrome/browser/safe_browsing/protocol_manager.h" |
11 #include "google_apis/google_api_keys.h" | 11 #include "google_apis/google_api_keys.h" |
12 #include "net/base/escape.h" | 12 #include "net/base/escape.h" |
13 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/url_request/test_url_fetcher_factory.h" | 15 #include "net/url_request/test_url_fetcher_factory.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 second_chunk_url_fetcher->delegate()->OnURLFetchComplete( | 1062 second_chunk_url_fetcher->delegate()->OnURLFetchComplete( |
1063 second_chunk_url_fetcher); | 1063 second_chunk_url_fetcher); |
1064 | 1064 |
1065 EXPECT_FALSE(pm->IsUpdateScheduled()); | 1065 EXPECT_FALSE(pm->IsUpdateScheduled()); |
1066 | 1066 |
1067 // Invoke the AddChunksCallback to finish the update. | 1067 // Invoke the AddChunksCallback to finish the update. |
1068 runner->RunPendingTasks(); | 1068 runner->RunPendingTasks(); |
1069 | 1069 |
1070 EXPECT_TRUE(pm->IsUpdateScheduled()); | 1070 EXPECT_TRUE(pm->IsUpdateScheduled()); |
1071 } | 1071 } |
OLD | NEW |