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

Unified Diff: chrome/browser/extensions/extension_uitest.cc

Issue 316016: Move the json-related files into a separate json directory. This hopefully al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_uitest.cc
===================================================================
--- chrome/browser/extensions/extension_uitest.cc (revision 29830)
+++ chrome/browser/extensions/extension_uitest.cc (working copy)
@@ -4,8 +4,8 @@
#include "base/command_line.h"
#include "base/gfx/rect.h"
-#include "base/json_reader.h"
-#include "base/json_writer.h"
+#include "base/json/json_reader.h"
+#include "base/json/json_writer.h"
#include "base/values.h"
#include "chrome/browser/automation/extension_automation_constants.h"
#include "chrome/browser/extensions/extension_tabs_module_constants.h"
@@ -123,7 +123,8 @@
EXPECT_TRUE(proxy->origin() == keys::kAutomationOrigin);
EXPECT_TRUE(proxy->target() == keys::kAutomationRequestTarget);
- scoped_ptr<Value> message_value(JSONReader::Read(proxy->message(), false));
+ scoped_ptr<Value> message_value(base::JSONReader::Read(proxy->message(),
+ false));
ASSERT_TRUE(message_value->IsType(Value::TYPE_DICTIONARY));
DictionaryValue* message_dict =
reinterpret_cast<DictionaryValue*>(message_value.get());
@@ -208,7 +209,7 @@
EXPECT_TRUE(origin_ == keys::kAutomationOrigin);
EXPECT_TRUE(target_ == keys::kAutomationRequestTarget);
- scoped_ptr<Value> message_value(JSONReader::Read(message_, false));
+ scoped_ptr<Value> message_value(base::JSONReader::Read(message_, false));
ASSERT_TRUE(message_value->IsType(Value::TYPE_DICTIONARY));
DictionaryValue* request_dict =
static_cast<DictionaryValue*>(message_value.get());
@@ -243,13 +244,13 @@
extension_tabs_module_constants::kUrlKey, "http://www.google.com"));
std::string tab_json;
- JSONWriter::Write(&tab_dict, false, &tab_json);
+ base::JSONWriter::Write(&tab_dict, false, &tab_json);
EXPECT_TRUE(response_dict.SetString(keys::kAutomationResponseKey,
tab_json));
std::string response_json;
- JSONWriter::Write(&response_dict, false, &response_json);
+ base::JSONWriter::Write(&response_dict, false, &response_json);
tab_->HandleMessageFromExternalHost(
response_json,
@@ -386,7 +387,7 @@
// This should be a request for the current window. We don't need to
// respond, as this is used only as an indication that the extension
// page is now loaded.
- scoped_ptr<Value> message_value(JSONReader::Read(message, false));
+ scoped_ptr<Value> message_value(base::JSONReader::Read(message, false));
ASSERT_TRUE(message_value->IsType(Value::TYPE_DICTIONARY));
DictionaryValue* message_dict =
reinterpret_cast<DictionaryValue*>(message_value.get());
@@ -418,7 +419,7 @@
// There is a special message "ACK" which means that the extension
// received the port connection. This is not an event response and
// should happen before all events.
- scoped_ptr<Value> message_value(JSONReader::Read(message, false));
+ scoped_ptr<Value> message_value(base::JSONReader::Read(message, false));
ASSERT_TRUE(message_value->IsType(Value::TYPE_DICTIONARY));
DictionaryValue* message_dict =
reinterpret_cast<DictionaryValue*>(message_value.get());
« no previous file with comments | « chrome/browser/extensions/extension_toolstrip_api.cc ('k') | chrome/browser/extensions/extensions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698