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 "components/autofill/browser/autofill_data_model.h" | 5 #include "components/autofill/core/browser/autofill_data_model.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 // Provides concrete implementations for pure virtual methods. | 14 // Provides concrete implementations for pure virtual methods. |
15 class TestAutofillDataModel : public AutofillDataModel { | 15 class TestAutofillDataModel : public AutofillDataModel { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 EXPECT_TRUE(model.IsVerified()); | 59 EXPECT_TRUE(model.IsVerified()); |
60 | 60 |
61 model.set_origin("Some gibberish string"); | 61 model.set_origin("Some gibberish string"); |
62 EXPECT_TRUE(model.IsVerified()); | 62 EXPECT_TRUE(model.IsVerified()); |
63 | 63 |
64 model.set_origin(std::string()); | 64 model.set_origin(std::string()); |
65 EXPECT_FALSE(model.IsVerified()); | 65 EXPECT_FALSE(model.IsVerified()); |
66 } | 66 } |
67 | 67 |
68 } // namespace autofill | 68 } // namespace autofill |
OLD | NEW |