Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: chrome/browser/ui/autofill/autocheckout_bubble_controller_unittest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/callback.h" 6 #include "base/callback.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/autofill/autofill_metrics.h"
9 #include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h" 8 #include "chrome/browser/ui/autofill/autocheckout_bubble_controller.h"
9 #include "components/autofill/browser/autofill_metrics.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace { 13 namespace {
14 14
15 class TestAutofillMetrics : public AutofillMetrics { 15 class TestAutofillMetrics : public AutofillMetrics {
16 public: 16 public:
17 TestAutofillMetrics() 17 TestAutofillMetrics()
18 : metric_(NUM_BUBBLE_METRICS) {} 18 : metric_(NUM_BUBBLE_METRICS) {}
19 virtual ~TestAutofillMetrics() {} 19 virtual ~TestAutofillMetrics() {}
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Test that after a bubble is dismissed it is not considered ignored. 126 // Test that after a bubble is dismissed it is not considered ignored.
127 controller.BubbleDestroyed(); 127 controller.BubbleDestroyed();
128 128
129 EXPECT_EQ(AutofillMetrics::BUBBLE_DISMISSED, 129 EXPECT_EQ(AutofillMetrics::BUBBLE_DISMISSED,
130 controller.get_metric_logger()->metric()); 130 controller.get_metric_logger()->metric());
131 EXPECT_EQ(0, closure.run_count()); 131 EXPECT_EQ(0, closure.run_count());
132 } 132 }
133 133
134 } // namespace autofill 134 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autocheckout_bubble_controller.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698