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 // 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/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/net/url_info.h" | 12 #include "chrome/browser/net/url_info.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using base::TimeDelta; | 15 using base::TimeDelta; |
16 using base::TimeTicks; | 16 using base::TimeTicks; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 class UrlHostInfoTest : public testing::Test { | 20 class UrlHostInfoTest : public testing::Test { |
21 }; | 21 }; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 info.RemoveFromQueue(); // Do the reset. | 121 info.RemoveFromQueue(); // Do the reset. |
122 EXPECT_FALSE(info.is_assigned()); | 122 EXPECT_FALSE(info.is_assigned()); |
123 EXPECT_TRUE(info.was_found()); // Back to what it was before being queued. | 123 EXPECT_TRUE(info.was_found()); // Back to what it was before being queued. |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 // TODO(jar): Add death test for illegal state changes, and also for setting | 127 // TODO(jar): Add death test for illegal state changes, and also for setting |
128 // hostname when already set. | 128 // hostname when already set. |
129 | 129 |
130 } // namespace | 130 } // namespace |
OLD | NEW |