Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
html_testing_peer.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
19 #ifndef PAGESPEED_KERNEL_HTML_HTML_TESTING_PEER_H_
20 #define PAGESPEED_KERNEL_HTML_HTML_TESTING_PEER_H_
21 
22 #include <cstddef>
23 
28 
29 namespace net_instaweb {
30 
31 class HtmlEvent;
32 
34  public:
35  HtmlTestingPeer() { }
36 
37  static void SetNodeParent(HtmlNode* node, HtmlElement* parent) {
38  node->set_parent(parent);
39  }
40  static void AddEvent(HtmlParse* parser, HtmlEvent* event) {
41  parser->AddEvent(event);
42  }
43  static void SetCurrent(HtmlParse* parser, HtmlNode* node) {
44  parser->SetCurrent(node);
45  }
46  static void set_coalesce_characters(HtmlParse* parser, bool x) {
47  parser->set_coalesce_characters(x);
48  }
49  static size_t symbol_table_size(HtmlParse* parser) {
50  return parser->symbol_table_size();
51  }
52  static void set_buffer_events(HtmlParse* parse, bool value) {
53  parse->set_buffer_events(value);
54  }
55 
56  private:
57 
58 };
59 
60 }
61 
62 #endif
Definition: html_event.h:31
Definition: html_parse.h:88
Definition: html_element.h:42
void set_buffer_events(bool x)
Definition: html_parse.h:584
Definition: html_node.h:43
Definition: html_testing_peer.h:33