| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 // Single threaded tests of UrlInfo functionality. | 5 // Single threaded tests of UrlInfo functionality. |
| 6 | 6 |
| 7 #include <time.h> | 7 #include <time.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/platform_thread.h" | 10 #include "base/platform_thread.h" |
| 11 #include "chrome/browser/net/dns_host_info.h" | 11 #include "chrome/browser/net/url_info.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using base::TimeDelta; | 14 using base::TimeDelta; |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 class DnsHostInfoTest : public testing::Test { | 18 class DnsHostInfoTest : public testing::Test { |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 typedef chrome_browser_net::UrlInfo UrlInfo; | 21 typedef chrome_browser_net::UrlInfo UrlInfo; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 info.RemoveFromQueue(); // Do the reset. | 120 info.RemoveFromQueue(); // Do the reset. |
| 121 EXPECT_FALSE(info.is_assigned()); | 121 EXPECT_FALSE(info.is_assigned()); |
| 122 EXPECT_TRUE(info.was_found()); // Back to what it was before being queued. | 122 EXPECT_TRUE(info.was_found()); // Back to what it was before being queued. |
| 123 } | 123 } |
| 124 | 124 |
| 125 | 125 |
| 126 // TODO(jar): Add death test for illegal state changes, and also for setting | 126 // TODO(jar): Add death test for illegal state changes, and also for setting |
| 127 // hostname when already set. | 127 // hostname when already set. |
| 128 | 128 |
| 129 } // namespace | 129 } // namespace |
| OLD | NEW |