| 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 <cstdio> | 5 #include <cstdio> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 typedef std::vector<GURL> URLs; | 38 typedef std::vector<GURL> URLs; |
| 39 | 39 |
| 40 // a nice long URL that we can append numbers to to get new URLs | 40 // a nice long URL that we can append numbers to to get new URLs |
| 41 const char g_test_prefix[] = | 41 const char g_test_prefix[] = |
| 42 "http://www.google.com/products/foo/index.html?id=45028640526508376&seq="; | 42 "http://www.google.com/products/foo/index.html?id=45028640526508376&seq="; |
| 43 const int g_test_count = 1000; | 43 const int g_test_count = 1000; |
| 44 | 44 |
| 45 // Returns a test URL for index |i| | 45 // Returns a test URL for index |i| |
| 46 GURL TestURL(int i) { | 46 GURL TestURL(int i) { |
| 47 return GURL(StringPrintf("%s%d", g_test_prefix, i)); | 47 return GURL(base::StringPrintf("%s%d", g_test_prefix, i)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 std::vector<VisitedLinkSlave*> g_slaves; | 50 std::vector<VisitedLinkSlave*> g_slaves; |
| 51 | 51 |
| 52 class TestVisitedLinkDelegate : public VisitedLinkDelegate { | 52 class TestVisitedLinkDelegate : public VisitedLinkDelegate { |
| 53 public: | 53 public: |
| 54 virtual void RebuildTable( | 54 virtual void RebuildTable( |
| 55 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; | 55 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; |
| 56 | 56 |
| 57 void AddURLForRebuild(const GURL& url); | 57 void AddURLForRebuild(const GURL& url); |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 content::NOTIFICATION_RENDERER_PROCESS_CREATED, | 767 content::NOTIFICATION_RENDERER_PROCESS_CREATED, |
| 768 content::Source<content::RenderProcessHost>(&different_process_host), | 768 content::Source<content::RenderProcessHost>(&different_process_host), |
| 769 content::NotificationService::NoDetails()); | 769 content::NotificationService::NoDetails()); |
| 770 WaitForCoalescense(); | 770 WaitForCoalescense(); |
| 771 | 771 |
| 772 EXPECT_EQ(0, different_context.new_table_count()); | 772 EXPECT_EQ(0, different_context.new_table_count()); |
| 773 | 773 |
| 774 } | 774 } |
| 775 | 775 |
| 776 } // namespace components | 776 } // namespace components |
| OLD | NEW |