Chromium Code Reviews| Index: third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc |
| diff --git a/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc b/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a702ffa5b76954b62fffcefa7db4eb409ee833f |
| --- /dev/null |
| +++ b/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc |
| @@ -0,0 +1,45 @@ |
| +// Copyright (C) 2013 Google Inc. |
| +// |
| +// Licensed under the Apache License, Version 2.0 (the "License"); |
| +// you may not use this file except in compliance with the License. |
| +// You may obtain a copy of the License at |
| +// |
| +// http://www.apache.org/licenses/LICENSE-2.0 |
| +// |
| +// Unless required by applicable law or agreed to in writing, software |
| +// distributed under the License is distributed on an "AS IS" BASIS, |
| +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| +// See the License for the specific language governing permissions and |
| +// limitations under the License. |
| + |
| +#include <libaddressinput/address_validator.h> |
| + |
| +#include <gtest/gtest.h> |
| + |
| +#include "fake_downloader.h" |
| +#include "fake_storage.h" |
| + |
| +namespace { |
| + |
| +using i18n::addressinput::AddressValidator; |
| +using i18n::addressinput::FakeDownloader; |
| +using i18n::addressinput::FakeStorage; |
| +using i18n::addressinput::scoped_ptr; |
| + |
| +// Tests for AddressValidator object. |
| +class AddressValidatorTest : public testing::Test { |
| + protected: |
| + AddressValidatorTest() |
| + : validator_(new FakeDownloader, new FakeStorage) {} |
| + |
| + virtual ~AddressValidatorTest() {} |
| + |
| + AddressValidator validator_; |
| +}; |
| + |
| +TEST_F(AddressValidatorTest, Stubtest) { |
| + // TODO(rouslan): Add tests when the API is implemented. |
|
Evan Stade
2013/12/10 23:59:43
IMO don't add this file till it does something use
please use gerrit instead
2013/12/11 00:56:45
Removed for now.
|
| + EXPECT_TRUE(true); |
| +} |
| + |
| +} // namespace |