OLD | NEW |
1 // Copyright (C) 2013 Google Inc. | 1 // Copyright (C) 2013 Google Inc. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #include <cstddef> | 22 #include <cstddef> |
23 #include <ctime> | 23 #include <ctime> |
24 #include <string> | 24 #include <string> |
25 | 25 |
26 #include <gtest/gtest.h> | 26 #include <gtest/gtest.h> |
27 | 27 |
28 #include "fake_downloader.h" | 28 #include "fake_downloader.h" |
29 #include "fake_storage.h" | 29 #include "fake_storage.h" |
30 #include "region_data_constants.h" | 30 #include "region_data_constants.h" |
31 #include "util/string_util.h" | 31 #include "time_to_string.h" |
32 | 32 |
33 namespace i18n { | 33 namespace i18n { |
34 namespace addressinput { | 34 namespace addressinput { |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 const char kKey[] = "data/CA"; | 38 const char kKey[] = "data/CA"; |
39 | 39 |
40 // Empty data that the downloader can return. | 40 // Empty data that the downloader can return. |
41 const char kEmptyData[] = "{}"; | 41 const char kEmptyData[] = "{}"; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 TEST_F(RetrieverTest, NullCallbackNoCrash) { | 327 TEST_F(RetrieverTest, NullCallbackNoCrash) { |
328 ASSERT_NO_FATAL_FAILURE( | 328 ASSERT_NO_FATAL_FAILURE( |
329 retriever_->Retrieve(kKey, scoped_ptr<Retriever::Callback>())); | 329 retriever_->Retrieve(kKey, scoped_ptr<Retriever::Callback>())); |
330 ASSERT_NO_FATAL_FAILURE( | 330 ASSERT_NO_FATAL_FAILURE( |
331 retriever_->Retrieve(kKey, scoped_ptr<Retriever::Callback>())); | 331 retriever_->Retrieve(kKey, scoped_ptr<Retriever::Callback>())); |
332 } | 332 } |
333 | 333 |
334 } // namespace addressinput | 334 } // namespace addressinput |
335 } // namespace i18n | 335 } // namespace i18n |
OLD | NEW |