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

Unified Diff: content/common/android/address_parser_internal.h

Issue 11428122: Let content_unittests almost build with the components build on android (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/android/address_parser.h ('k') | content/common/android/common_jni_registrar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/address_parser_internal.h
diff --git a/content/common/android/address_parser_internal.h b/content/common/android/address_parser_internal.h
index bcf25900d9e4b638f49ab852be41f11c2bdbc786..81fc3e3ea4b9a4d1ea2cce44f35ac3ee01698be6 100644
--- a/content/common/android/address_parser_internal.h
+++ b/content/common/android/address_parser_internal.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/string_tokenizer.h"
+#include "content/common/content_export.h"
namespace content {
@@ -16,7 +17,8 @@ namespace address_parser {
// Internal classes and functions for address parsing.
namespace internal {
-struct Word {
+// Exposed for tests.
+struct CONTENT_EXPORT Word {
string16::const_iterator begin;
string16::const_iterator end;
@@ -25,7 +27,8 @@ struct Word {
const string16::const_iterator& end);
};
-class HouseNumberParser {
+// Exposed for tests.
+class CONTENT_EXPORT HouseNumberParser {
public:
HouseNumberParser() {}
@@ -63,15 +66,16 @@ typedef std::vector<Word> WordList;
typedef StringTokenizerT<string16, string16::const_iterator>
String16Tokenizer;
-bool FindStateStartingInWord(WordList* words,
- size_t state_first_word,
- size_t* state_last_word,
- String16Tokenizer* tokenizer,
- size_t* state_index);
+// These are exposed for tests.
+CONTENT_EXPORT bool FindStateStartingInWord(WordList* words,
+ size_t state_first_word,
+ size_t* state_last_word,
+ String16Tokenizer* tokenizer,
+ size_t* state_index);
-bool IsValidLocationName(const Word& word);
-bool IsZipValid(const Word& word, size_t state_index);
-bool IsZipValidForState(const Word& word, size_t state_index);
+CONTENT_EXPORT bool IsValidLocationName(const Word& word);
+CONTENT_EXPORT bool IsZipValid(const Word& word, size_t state_index);
+CONTENT_EXPORT bool IsZipValidForState(const Word& word, size_t state_index);
} // namespace internal
« no previous file with comments | « content/common/android/address_parser.h ('k') | content/common/android/common_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698