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 "components/rlz/rlz_tracker.h" | 5 #include "components/rlz/rlz_tracker.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/sequenced_worker_pool_owner.h" | 12 #include "base/test/sequenced_worker_pool_owner.h" |
12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "build/build_config.h" |
14 #include "components/rlz/rlz_tracker_delegate.h" | 16 #include "components/rlz/rlz_tracker_delegate.h" |
15 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
16 #include "rlz/test/rlz_test_helpers.h" | 18 #include "rlz/test/rlz_test_helpers.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
18 | 20 |
19 #if defined(OS_IOS) | 21 #if defined(OS_IOS) |
20 #include "ui/base/device_form_factor.h" | 22 #include "ui/base/device_form_factor.h" |
21 #endif | 23 #endif |
22 | 24 |
23 using testing::AssertionResult; | 25 using testing::AssertionResult; |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 1000 |
999 ExpectEventRecorded(OmniboxFirstSearch(), true); | 1001 ExpectEventRecorded(OmniboxFirstSearch(), true); |
1000 | 1002 |
1001 RLZTracker::ClearRlzState(); | 1003 RLZTracker::ClearRlzState(); |
1002 | 1004 |
1003 ExpectEventRecorded(OmniboxFirstSearch(), false); | 1005 ExpectEventRecorded(OmniboxFirstSearch(), false); |
1004 } | 1006 } |
1005 #endif // defined(OS_CHROMEOS) | 1007 #endif // defined(OS_CHROMEOS) |
1006 | 1008 |
1007 } // namespace rlz | 1009 } // namespace rlz |
OLD | NEW |