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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/test/retriever_test.cc

Issue 208243005: Determine language code and type of format for address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ctime include. Created 6 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 (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
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 "time_to_string.h" 31 #include "util/string_util.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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698