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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/test/fake_storage.h

Issue 145553009: rAc: use libaddressinput to validate international addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // 52 //
53 // DISALLOW_COPY_AND_ASSIGN(MyClass); 53 // DISALLOW_COPY_AND_ASSIGN(MyClass);
54 // }; 54 // };
55 class FakeStorage : public Storage { 55 class FakeStorage : public Storage {
56 public: 56 public:
57 FakeStorage(); 57 FakeStorage();
58 virtual ~FakeStorage(); 58 virtual ~FakeStorage();
59 59
60 // Storage implementation. 60 // Storage implementation.
61 virtual void Put(const std::string& key, const std::string& data); 61 virtual void Put(const std::string& key, const std::string& data);
62 virtual void Get(const std::string& key, scoped_ptr<Callback> data_ready) 62 virtual void Get(const std::string& key, scoped_ptr<Callback> data_ready);
63 const;
64 63
65 private: 64 private:
66 std::map<std::string, std::string> data_; 65 std::map<std::string, std::string> data_;
67 }; 66 };
68 67
69 } // namespace addressinput 68 } // namespace addressinput
70 } // namespace i18n 69 } // namespace i18n
71 70
72 #endif // I18N_ADDRESSINPUT_FAKE_STORAGE_H_ 71 #endif // I18N_ADDRESSINPUT_FAKE_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698