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