OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/metrics/histogram.h" | 6 #include "base/metrics/histogram.h" |
7 #include "base/metrics/statistics_recorder.h" | 7 #include "base/metrics/statistics_recorder.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "chrome/browser/search/most_visited_iframe_source.h" | 9 #include "chrome/browser/search/most_visited_iframe_source.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 class MostVisitedIframeSourceTest : public testing::Test { | 12 class MostVisitedIframeSourceTest : public testing::Test { |
13 public: | 13 public: |
14 void ExpectNullData(base::RefCountedMemory* data) { | 14 void ExpectNullData(base::RefCountedMemory* data) { |
15 EXPECT_EQ(NULL, data); | 15 EXPECT_EQ(NULL, data); |
16 } | 16 } |
17 | 17 |
18 protected: | 18 protected: |
19 MostVisitedIframeSource* source() { return source_.get(); } | 19 MostVisitedIframeSource* source() { return source_.get(); } |
20 | 20 |
21 private: | 21 private: |
22 virtual void SetUp() { source_.reset(new MostVisitedIframeSource()); } | 22 void SetUp() override { source_.reset(new MostVisitedIframeSource()); } |
23 | 23 |
24 scoped_ptr<MostVisitedIframeSource> source_; | 24 scoped_ptr<MostVisitedIframeSource> source_; |
25 }; | 25 }; |
OLD | NEW |