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 <deque> | 5 #include <deque> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 521 |
522 // Returned pointer has the same lifespan as the database_manager_ refcounted | 522 // Returned pointer has the same lifespan as the database_manager_ refcounted |
523 // object. | 523 // object. |
524 FakeSafeBrowsingDatabaseManager* fake_database_manager() { | 524 FakeSafeBrowsingDatabaseManager* fake_database_manager() { |
525 return fake_database_manager_; | 525 return fake_database_manager_; |
526 } | 526 } |
527 | 527 |
528 protected: | 528 protected: |
529 virtual ~FakeSafeBrowsingService() { } | 529 virtual ~FakeSafeBrowsingService() { } |
530 | 530 |
531 virtual SafeBrowsingDatabaseManager* CreateDatabaseManager() { | 531 virtual SafeBrowsingDatabaseManager* CreateDatabaseManager() OVERRIDE { |
532 fake_database_manager_ = new FakeSafeBrowsingDatabaseManager(this); | 532 fake_database_manager_ = new FakeSafeBrowsingDatabaseManager(this); |
533 return fake_database_manager_; | 533 return fake_database_manager_; |
534 } | 534 } |
535 | 535 |
536 private: | 536 private: |
537 FakeSafeBrowsingDatabaseManager* fake_database_manager_; | 537 FakeSafeBrowsingDatabaseManager* fake_database_manager_; |
538 | 538 |
539 DISALLOW_COPY_AND_ASSIGN(FakeSafeBrowsingService); | 539 DISALLOW_COPY_AND_ASSIGN(FakeSafeBrowsingService); |
540 }; | 540 }; |
541 | 541 |
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2725 channel_close_watcher.WatchChannel(browser()->tab_strip_model()-> | 2725 channel_close_watcher.WatchChannel(browser()->tab_strip_model()-> |
2726 GetActiveWebContents()->GetRenderProcessHost()); | 2726 GetActiveWebContents()->GetRenderProcessHost()); |
2727 NavigateToDestURL(); | 2727 NavigateToDestURL(); |
2728 channel_close_watcher.WaitForChannelClose(); | 2728 channel_close_watcher.WaitForChannelClose(); |
2729 | 2729 |
2730 ASSERT_TRUE(IsEmptyPrerenderLinkManager()); | 2730 ASSERT_TRUE(IsEmptyPrerenderLinkManager()); |
2731 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); | 2731 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
2732 } | 2732 } |
2733 | 2733 |
2734 } // namespace prerender | 2734 } // namespace prerender |
OLD | NEW |